home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / f1ocx / vcform1.2 / VB4 / VCF1CMPT.TXT < prev    next >
Encoding:
Text File  |  1995-09-15  |  78.8 KB  |  3,635 lines

  1. Attribute VB_Name = "VCI FO Compatibility Layer"
  2. ' vcf1cmpt.txt
  3. '
  4. ' Copyright (c) 1992-1995, Visual Components Inc.
  5. '
  6. Option Explicit
  7.  
  8. Public Function SSAddColPageBreak%(SS As Object, ByVal nCol%)
  9.  
  10.    On Error GoTo SSAddColPageBreakError
  11.    SS.AddColPageBreak nCol
  12.    SSAddColPageBreak = 0
  13.    Exit Function
  14.  
  15. SSAddColPageBreakError:
  16.    SSAddColPageBreak = Err.Number
  17.  
  18. End Function
  19.  
  20. Public Function SSAddPageBreak%(SS As Object)
  21.  
  22.    On Error GoTo SSAddPageBreakError
  23.    SS.AddPageBreak
  24.    SSAddPageBreak = 0
  25.    Exit Function
  26.  
  27. SSAddPageBreakError:
  28.    SSAddPageBreak = Err.Number
  29.  
  30. End Function
  31.  
  32. Public Function SSAddRowPageBreak(SS As Object, ByVal nRow%)
  33.  
  34.    On Error GoTo SSAddRowPageBreakError
  35.    SS.AddRowPageBreak nRow
  36.    SSAddRowPageBreak = 0
  37.    Exit Function
  38.  
  39. SSAddRowPageBreakError:
  40.    SSAddRowPageBreak = Err.Number
  41.  
  42. End Function
  43.  
  44. Public Function SSAddSelection%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%)
  45.  
  46.    On Error GoTo SSAddSelectionError
  47.    SS.AddSelection nR1, nC1, nR2, nC2
  48.    SSAddSelection = 0
  49.    Exit Function
  50.  
  51. SSAddSelectionError:
  52.    SSAddSelection = Err.Number
  53.  
  54. End Function
  55.  
  56. Public Function SSAttach%(SS As Object, ByVal pTitle$)
  57.  
  58.    On Error GoTo SSAttachError
  59.    SS.Attach pTitle
  60.    SSAttach = 0
  61.    Exit Function
  62.  
  63. SSAttachError:
  64.    SSAttach = Err.Number
  65.  
  66. End Function
  67.  
  68. Public Function SSAttachToSS%(SS As Object, hsrcSS As Long)
  69.  
  70.    On Error GoTo SSAttachToSSError
  71.    SS.AttachToSS hsrcSS
  72.    SSAttachToSS = 0
  73.    Exit Function
  74.  
  75. SSAttachToSSError:
  76.    SSAttachToSS = Err.Number
  77.  
  78. End Function
  79.  
  80. Public Function SSCalculationDlg%(SS As Object)
  81.  
  82.    On Error GoTo SSCalculationDlgError
  83.    SS.CalculationDlg
  84.    SSCalculationDlg = 0
  85.    Exit Function
  86.  
  87. SSCalculationDlgError:
  88.    SSCalculationDlg = Err.Number
  89.  
  90. End Function
  91.  
  92. Public Function SSCancelEdit%(SS As Object)
  93.  
  94.    On Error GoTo SSCancelEditError
  95.    SS.CancelEdit
  96.    SSCancelEdit = 0
  97.    Exit Function
  98.  
  99. SSCancelEditError:
  100.    SSCancelEdit = Err.Number
  101.  
  102. End Function
  103.  
  104. Public Function SSEditPasteValues%(SS As Object)
  105.  
  106.    On Error GoTo SSEditPasteValuesError
  107.    SS.EditPasteValues
  108.    SSEditPasteValues = 0
  109.    Exit Function
  110.  
  111. SSEditPasteValuesError:
  112.    SSEditPasteValues = Err.Number
  113.  
  114. End Function
  115.  
  116. Public Function SSCheckRecalc%(SS As Object)
  117.  
  118.    On Error GoTo SSCheckRecalcError
  119.    SS.CheckRecalc
  120.    SSCheckRecalc = 0
  121.    Exit Function
  122.  
  123. SSCheckRecalcError:
  124.    SSCheckRecalc = Err.Number
  125.  
  126. End Function
  127.  
  128. Public Function SSClearClipboard%()
  129.  
  130.    On Error GoTo SSClearClipboardError
  131.    SS.ClearClipboard
  132.    SSClearClipboard = 0
  133.    Exit Function
  134.  
  135. SSClearClipboardError:
  136.    SSClearClipboard = Err.Number
  137.  
  138. End Function
  139.  
  140. Public Function SSClearRange%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%, ByVal nClearType%)
  141.  
  142.    On Error GoTo SSClearRangeError
  143.    SS.ClearRange nR1, nC1, nR2, nC2, nClearType
  144.    SSClearRange = 0
  145.    Exit Function
  146.  
  147. SSClearRangeError:
  148.    SSClearRange = Err.Number
  149.  
  150. End Function
  151.  
  152. Public Function SSColorPaletteDlg%(SS As Object)
  153.  
  154.    On Error GoTo SSColorPaletteDlgError
  155.    SS.ColorPaletteDlg
  156.    SSColorPaletteDlg = 0
  157.    Exit Function
  158.  
  159. SSColorPaletteDlgError:
  160.    SSColorPaletteDlg = Err.Number
  161.  
  162. End Function
  163.  
  164. Public Function SSColWidthDlg%(SS As Object)
  165.  
  166.    On Error GoTo SSColWidthDlgError
  167.    SS.ColWidthDlg
  168.    SSColWidthDlg = 0
  169.    Exit Function
  170.  
  171. SSColWidthDlgError:
  172.    SSColWidthDlg = Err.Number
  173.  
  174. End Function
  175.  
  176. Public Function SSCopyAll%(SS As Object, ByVal hSrcSS&)
  177.  
  178.    On Error GoTo SSCopyAllError
  179.    SS.CopyAll hSrcSS
  180.    SSCopyAll = 0
  181.    Exit Function
  182.  
  183. SSCopyAllError:
  184.    SSCopyAll = Err.Number
  185.  
  186. End Function
  187.  
  188. Public Function SSCopyRange%(SS As Object, ByVal nDstR1%, ByVal nDstC1%, ByVal nDstR2%, ByVal nDstC2%, ByVal hSrcSS&, ByVal nSrcR1%, ByVal nSrcC1%, ByVal nSrcR2%, ByVal nSrcC2%)
  189.  
  190.    On Error GoTo SSCopyRangeError
  191.    SS.CopyRange nDstR1, nDstC1, nDstR2, nDstC2, hSrcSS, nSrcR1, nSrcC1, nSrcR2, nSrcC2
  192.    SSCopyRange = 0
  193.    Exit Function
  194.  
  195. SSCopyRangeError:
  196.    SSCopyRange = Err.Number
  197.  
  198. End Function
  199.  
  200. Public Function SSDefinedNameDlg%(SS As Object)
  201.  
  202.    On Error GoTo SSDefinedNameDlgError
  203.    SS.DefinedNameDlg
  204.    SSDefinedNameDlg = 0
  205.    Exit Function
  206.  
  207. SSDefinedNameDlgError:
  208.    SSDefinedNameDlg = Err.Number
  209.  
  210. End Function
  211.  
  212. Public Function SSDeleteDefinedName%(SS As Object, ByVal pName$)
  213.  
  214.    On Error GoTo SSDeleteDefinedNameError
  215.    SS.DeleteDefinedName pName
  216.    SSDeleteDefinedName = 0
  217.    Exit Function
  218.  
  219. SSDeleteDefinedNameError:
  220.    SSDeleteDefinedName = Err.Number
  221.  
  222. End Function
  223.  
  224. Public Function SSDeleteRange%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%, ByVal nShiftType%)
  225.  
  226.    On Error GoTo SSDeleteRangeError
  227.    SS.DeleteRange nR1, nC1, nR2, nC2, nShiftType
  228.    SSDeleteRange = 0
  229.    Exit Function
  230.  
  231. SSDeleteRangeError:
  232.    SSDeleteRange = Err.Number
  233.  
  234. End Function
  235.  
  236. Public Function SSDeleteTable%(SS As Object)
  237.  
  238.    On Error GoTo SSDeleteTableError
  239.    SS.DeleteTable
  240.    SSDeleteTable = 0
  241.    Exit Function
  242.  
  243. SSDeleteTableError:
  244.    SSDeleteTable = Err.Number
  245.  
  246. End Function
  247.  
  248. Public Function SSDraw%(SS As Object, ByVal hDC%, ByVal x%, ByVal y%, ByVal cx%, ByVal cy%, ByVal nRow%, ByVal nCol%, nRows%, nCols%, ByVal nFixedRow%, ByVal nFixedCol%, ByVal nFixedRows%, ByVal nFixedCols%)
  249.  
  250.    On Error GoTo SSDrawError
  251.    SS.Draw hDC, x, y, cx, cy, nRow, nCol, nRows, nCols, nFixedRow, nFixedCol, nFixedRows, nFixedCols
  252.    SSDraw = 0
  253.    Exit Function
  254.  
  255. SSDrawError:
  256.    SSDraw = Err.Number
  257.  
  258. End Function
  259.  
  260. Public Function SSEditClear%(SS As Object, ByVal nClearType%)
  261.  
  262.    On Error GoTo SSEditClearError
  263.    SS.EditClear nClearType
  264.    SSEditClear = 0
  265.    Exit Function
  266.  
  267. SSEditClearError:
  268.    SSEditClear = Err.Number
  269.  
  270. End Function
  271.  
  272. Public Function SSEditCopy%(SS As Object)
  273.  
  274.    On Error GoTo SSEditCopyError
  275.    SS.EditCopy
  276.    SSEditCopy = 0
  277.    Exit Function
  278.  
  279. SSEditCopyError:
  280.    SSEditCopy = Err.Number
  281.  
  282. End Function
  283.  
  284. Public Function SSEditCopyDown%(SS As Object)
  285.  
  286.    On Error GoTo SSEditCopyDownError
  287.    SS.EditCopyDown
  288.    SSEditCopyDown = 0
  289.    Exit Function
  290.  
  291. SSEditCopyDownError:
  292.    SSEditCopyDown = Err.Number
  293.  
  294. End Function
  295.  
  296. Public Function SSEditCopyRight%(SS As Object)
  297.  
  298.    On Error GoTo SSEditCopyRightError
  299.    SS.EditCopyRight
  300.    SSEditCopyRight = 0
  301.    Exit Function
  302.  
  303. SSEditCopyRightError:
  304.    SSEditCopyRight = Err.Number
  305.  
  306. End Function
  307.  
  308. Public Function SSEditCut%(SS As Object)
  309.  
  310.    On Error GoTo SSEditCutError
  311.    SS.EditCut
  312.    SSEditCut = 0
  313.    Exit Function
  314.  
  315. SSEditCutError:
  316.    SSEditCut = Err.Number
  317.  
  318. End Function
  319.  
  320. Public Function SSEditDelete%(SS As Object, ByVal nShiftType%)
  321.  
  322.    On Error GoTo SSEditDeleteError
  323.    SS.EditDelete nShiftType
  324.    SSEditDelete = 0
  325.    Exit Function
  326.  
  327. SSEditDeleteError:
  328.    SSEditDelete = Err.Number
  329.  
  330. End Function
  331.  
  332. Public Function SSEditInsert%(SS As Object, ByVal nShiftType%)
  333.  
  334.    On Error GoTo SSEditInsertError
  335.    SS.EditInsert nShiftType
  336.    SSEditInsert = 0
  337.    Exit Function
  338.  
  339. SSEditInsertError:
  340.    SSEditInsert = Err.Number
  341.  
  342. End Function
  343.  
  344. Public Function SSEditPaste%(SS As Object)
  345.  
  346.    On Error GoTo SSEditPasteError
  347.    SS.EditPaste
  348.    SSEditPaste = 0
  349.    Exit Function
  350.  
  351. SSEditPasteError:
  352.    SSEditPaste = Err.Number
  353.  
  354. End Function
  355.  
  356. Public Function SSEndEdit%(SS As Object)
  357.  
  358.    On Error GoTo SSEndEditError
  359.    SS.EndEdit
  360.    SSEndEdit = 0
  361.    Exit Function
  362.  
  363. SSEndEditError:
  364.    SSEndEdit = Err.Number
  365.  
  366. End Function
  367.  
  368. Public Function SSErrorNumberToText%(SS As Object, ByVal nError%, ByVal pBuf$, ByVal nBufSize%)
  369.  
  370.    On Error GoTo SSErrorNumberToTextError
  371.    pBuf = SS.ErrorNumberToText(nError)
  372.    SSErrorNumberToText = 0
  373.    Exit Function
  374.  
  375. SSErrorNumberToTextError:
  376.    SSErrorNumberToText = Err.Number
  377.  
  378. End Function
  379.  
  380. Public Function SSFilePageSetupDlg%(SS As Object)
  381.  
  382.    On Error GoTo SSFilePageSetupDlgError
  383.    SS.FilePageSetupDlg
  384.    SSFilePageSetupDlg = 0
  385.    Exit Function
  386.  
  387. SSFilePageSetupDlgError:
  388.    SSFilePageSetupDlg = Err.Number
  389.  
  390. End Function
  391.  
  392. Public Function SSFilePrint%(SS As Object, ByVal bShowPrintDlg%)
  393.  
  394.    On Error GoTo SSFilePrintError
  395.    SS.FilePrint bShowPrintDlg
  396.    SSFilePrint = 0
  397.    Exit Function
  398.  
  399. SSFilePrintError:
  400.    SSFilePrint = Err.Number
  401.  
  402. End Function
  403.  
  404. Public Function SSFilePrintSetupDlg%(SS As Object)
  405.  
  406.    On Error GoTo SSFilePrintSetupDlgError
  407.    SS.FilePrintSetupDlg
  408.    SSFilePrintSetupDlg = 0
  409.    Exit Function
  410.  
  411. SSFilePrintSetupDlgError:
  412.    SSFilePrintSetupDlg = Err.Number
  413.  
  414. End Function
  415.  
  416. Public Function SSFormatAlignmentDlg%(SS As Object)
  417.  
  418.    On Error GoTo SSFormatAlignmentDlgError
  419.    SS.FormatAlignmentDlg
  420.    SSFormatAlignmentDlg = 0
  421.    Exit Function
  422.  
  423. SSFormatAlignmentDlgError:
  424.    SSFormatAlignmentDlg = Err.Number
  425.  
  426. End Function
  427.  
  428. Public Function SSFormatBorderDlg%(SS As Object)
  429.  
  430.    On Error GoTo SSFormatBorderDlgError
  431.    SS.FormatBorderDlg
  432.    SSFormatBorderDlg = 0
  433.    Exit Function
  434.  
  435. SSFormatBorderDlgError:
  436.    SSFormatBorderDlg = Err.Number
  437.  
  438. End Function
  439.  
  440. Public Function SSFormatCurrency0%(SS As Object)
  441.  
  442.    On Error GoTo SSFormatCurrency0Error
  443.    SS.FormatCurrency0
  444.    SSFormatCurrency0 = 0
  445.    Exit Function
  446.  
  447. SSFormatCurrency0Error:
  448.    SSFormatCurrency0 = Err.Number
  449.  
  450. End Function
  451.  
  452. Public Function SSFormatCurrency2%(SS As Object)
  453.  
  454.    On Error GoTo SSFormatCurrency2Error
  455.    SS.FormatCurrency2
  456.    SSFormatCurrency2 = 0
  457.    Exit Function
  458.  
  459. SSFormatCurrency2Error:
  460.    SSFormatCurrency2 = Err.Number
  461.  
  462. End Function
  463.  
  464. Public Function SSFormatDefaultFontDlg%(SS As Object)
  465.  
  466.    On Error GoTo SSFormatDefaultFontDlgError
  467.    SS.FormatDefaultFontDlg
  468.    SSFormatDefaultFontDlg = 0
  469.    Exit Function
  470.  
  471. SSFormatDefaultFontDlgError:
  472.    SSFormatDefaultFontDlg = Err.Number
  473.  
  474. End Function
  475.  
  476. Public Function SSFormatFixed%(SS As Object)
  477.  
  478.    On Error GoTo SSFormatFixedError
  479.    SS.FormatFixed
  480.    SSFormatFixed = 0
  481.    Exit Function
  482.  
  483. SSFormatFixedError:
  484.    SSFormatFixed = Err.Number
  485.  
  486. End Function
  487.  
  488. Public Function SSFormatFixed2%(SS As Object)
  489.  
  490.    On Error GoTo SSFormatFixed2Error
  491.    SS.FormatFixed2
  492.    SSFormatFixed2 = 0
  493.    Exit Function
  494.  
  495. SSFormatFixed2Error:
  496.    SSFormatFixed2 = Err.Number
  497.  
  498. End Function
  499.  
  500. Public Function SSFormatFontDlg%(SS As Object)
  501.  
  502.    On Error GoTo SSFormatFontDlgError
  503.    SS.FormatFontDlg
  504.    SSFormatFontDlg = 0
  505.    Exit Function
  506.  
  507. SSFormatFontDlgError:
  508.    SSFormatFontDlg = Err.Number
  509.  
  510. End Function
  511.  
  512. Public Function SSFormatFraction%(SS As Object)
  513.  
  514.    On Error GoTo SSFormatFractionError
  515.    SS.FormatFraction
  516.    SSFormatFraction = 0
  517.    Exit Function
  518.  
  519. SSFormatFractionError:
  520.    SSFormatFraction = Err.Number
  521.  
  522. End Function
  523.  
  524. Public Function SSFormatGeneral%(SS As Object)
  525.  
  526.    On Error GoTo SSFormatGeneralError
  527.    SS.FormatGeneral
  528.    SSFormatGeneral = 0
  529.    Exit Function
  530.  
  531. SSFormatGeneralError:
  532.    SSFormatGeneral = Err.Number
  533.  
  534. End Function
  535.  
  536. Public Function SSFormatHmmampm%(SS As Object)
  537.  
  538.    On Error GoTo SSFormatHmmampmError
  539.    SS.FormatHmmampm
  540.    SSFormatHmmampm = 0
  541.    Exit Function
  542.  
  543. SSFormatHmmampmError:
  544.    SSFormatHmmampm = Err.Number
  545.  
  546. End Function
  547.  
  548. Public Function SSFormatMdyy%(SS As Object)
  549.  
  550.    On Error GoTo SSFormatMdyyError
  551.    SS.FormatMdyy
  552.    SSFormatMdyy = 0
  553.    Exit Function
  554.  
  555. SSFormatMdyyError:
  556.    SSFormatMdyy = Err.Number
  557.  
  558. End Function
  559.  
  560. Public Function SSFormatNumberDlg%(SS As Object)
  561.  
  562.    On Error GoTo SSFormatNumberDlgError
  563.    SS.FormatNumberDlg
  564.    SSFormatNumberDlg = 0
  565.    Exit Function
  566.  
  567. SSFormatNumberDlgError:
  568.    SSFormatNumberDlg = Err.Number
  569.  
  570. End Function
  571.  
  572. Public Function SSFormatPatternDlg%(SS As Object)
  573.  
  574.    On Error GoTo SSFormatPatternDlgError
  575.    SS.FormatPatternDlg
  576.    SSFormatPatternDlg = 0
  577.    Exit Function
  578.  
  579. SSFormatPatternDlgError:
  580.    SSFormatPatternDlg = Err.Number
  581.  
  582. End Function
  583.  
  584. Public Function SSFormatPercent%(SS As Object)
  585.  
  586.    On Error GoTo SSFormatPercentError
  587.    SS.FormatPercent
  588.    SSFormatPercent = 0
  589.    Exit Function
  590.  
  591. SSFormatPercentError:
  592.    SSFormatPercent = Err.Number
  593.  
  594. End Function
  595.  
  596. Public Function SSFormatRCNr%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal bDoAbsolute%, ByVal pBuf$, ByVal nBufSize%)
  597.  
  598.    On Error GoTo SSFormatRCNrError
  599.    SS.FormatRCNr nRow, nCol, bDoAbsolute, pBuf, nBufSize
  600.    SSFormatRCNr = 0
  601.    Exit Function
  602.  
  603. SSFormatRCNrError:
  604.    SSFormatRCNr = Err.Number
  605.  
  606. End Function
  607.  
  608. Public Function SSFormatScientific%(SS As Object)
  609.  
  610.    On Error GoTo SSFormatScientificError
  611.    SS.FormatScientific
  612.    SSFormatScientific = 0
  613.    Exit Function
  614.  
  615. SSFormatScientificError:
  616.    SSFormatScientific = Err.Number
  617.  
  618. End Function
  619.  
  620. Public Function SSGetActiveCell%(SS As Object, pRow%, pCol%)
  621.  
  622.    On Error GoTo SSGetActiveCellError
  623.    SS.GetActiveCell pRow, pCol
  624.    SSGetActiveCell = 0
  625.    Exit Function
  626.  
  627. SSGetActiveCellError:
  628.    SSGetActiveCell = Err.Number
  629.  
  630. End Function
  631.  
  632. Public Function SSGetAlignment%(SS As Object, pHorizontal%, pWordWrap%, pVertical%, pOrientation%)
  633.  
  634.    On Error GoTo SSGetAlignmentError
  635.    SS.GetAlignment pHorizontal, pWordWrap, pVertical, pOrientation
  636.    SSGetAlignment = 0
  637.    Exit Function
  638.  
  639. SSGetAlignmentError:
  640.    SSGetAlignment = Err.Number
  641.  
  642. End Function
  643.  
  644. Public Function SSGetAllowArrows%(SS As Object, pAllowArrows%)
  645.  
  646.    On Error GoTo SSGetAllowArrowsError
  647.    pAllowArrows = SS.AllowArrows
  648.    SSGetAllowArrows = 0
  649.    Exit Function
  650.  
  651. SSGetAllowArrowsError:
  652.    SSGetAllowArrows = Err.Number
  653.  
  654. End Function
  655.  
  656. Public Function SSGetAllowDelete%(SS As Object, pAllowDelete%)
  657.  
  658.    On Error GoTo SSGetAllowDeleteError
  659.    pAllowDelete = SS.AllowDelete
  660.    SSGetAllowDelete = 0
  661.    Exit Function
  662.  
  663. SSGetAllowDeleteError:
  664.    SSGetAllowDelete = Err.Number
  665.  
  666. End Function
  667.  
  668. Public Function SSGetAllowEditHeaders%(SS As Object, pAllowEditHeaders%)
  669.  
  670.    On Error GoTo SSGetAllowEditHeadersError
  671.    pAllowEditHeaders = SS.AllowEditHeaders
  672.    SSGetAllowEditHeaders = 0
  673.    Exit Function
  674.  
  675. SSGetAllowEditHeadersError:
  676.    SSGetAllowEditHeaders = Err.Number
  677.  
  678. End Function
  679.  
  680. Public Function SSGetAllowFillRange%(SS As Object, pAllowFillRange%)
  681.  
  682.    On Error GoTo SSGetAllowFillRangeError
  683.    pAllowFillRange = SS.AllowFillRange
  684.    SSGetAllowFillRange = 0
  685.    Exit Function
  686.  
  687. SSGetAllowFillRangeError:
  688.    SSGetAllowFillRange = Err.Number
  689.  
  690. End Function
  691.  
  692. Public Function SSGetAllowInCellEditing%(SS As Object, pAllowInCellEditing%)
  693.  
  694.    On Error GoTo SSGetAllowInCellEditingError
  695.    pAllowInCellEditing = SS.AllowInCellEditing
  696.    SSGetAllowInCellEditing = 0
  697.    Exit Function
  698.  
  699. SSGetAllowInCellEditingError:
  700.    SSGetAllowInCellEditing = Err.Number
  701.  
  702. End Function
  703.  
  704. Public Function SSGetAllowMoveRange%(SS As Object, pAllowMoveRange%)
  705.  
  706.    On Error GoTo SSGetAllowMoveRangeError
  707.    pAllowMoveRange = SS.AllowMoveRange
  708.    SSGetAllowMoveRange = 0
  709.    Exit Function
  710.  
  711. SSGetAllowMoveRangeError:
  712.    SSGetAllowMoveRange = Err.Number
  713.  
  714. End Function
  715.  
  716. Public Function SSGetAllowObjSelections%(SS As Object, pAllowObjSelections%)
  717.  
  718.    On Error GoTo SSGetAllowObjSelectionsError
  719.    pAllowObjSelections = SS.AllowObjSelections
  720.    SSGetAllowObjSelections = 0
  721.    Exit Function
  722.  
  723. SSGetAllowObjSelectionsError:
  724.    SSGetAllowObjSelections = Err.Number
  725.  
  726. End Function
  727.  
  728. Public Function SSGetAllowResize%(SS As Object, pAllowResize%)
  729.  
  730.    On Error GoTo SSGetAllowResizeError
  731.    pAllowResize = SS.AllowResize
  732.    SSGetAllowResize = 0
  733.    Exit Function
  734.  
  735. SSGetAllowResizeError:
  736.    SSGetAllowResize = Err.Number
  737.  
  738. End Function
  739.  
  740. Public Function SSGetAllowSelections%(SS As Object, pAllowSelections%)
  741.  
  742.    On Error GoTo SSGetAllowSelectionsError
  743.    pAllowSelection = SS.AllowSelections
  744.    SSGetAllowSelections = 0
  745.    Exit Function
  746.  
  747. SSGetAllowSelectionsError:
  748.    SSGetAllowSelections = Err.Number
  749.  
  750. End Function
  751.  
  752. Public Function SSGetAllowTabs%(SS As Object, pAllowTabs%)
  753.  
  754.    On Error GoTo SSGetAllowTabsError
  755.    pAllowTabs = SS.AllowTabs
  756.    SSGetAllowTabs = 0
  757.    Exit Function
  758.  
  759. SSGetAllowTabsError:
  760.    SSGetAllowTabs = Err.Number
  761.  
  762. End Function
  763.  
  764. Public Function SSGetAllowFormulas%(SS As Object, pAllowFormulas%)
  765.  
  766.    On Error GoTo SSGetAllowFormulasError
  767.    pAllowFormulas = SS.AllowFormulas
  768.    SSGetAllowFormulas = 0
  769.    Exit Function
  770.  
  771. SSGetAllowFormulasError:
  772.    SSGetAllowFormulas = Err.Number
  773.  
  774. End Function
  775.  
  776. Public Function SSGetAppName%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  777.  
  778.    On Error GoTo SSGetAppNameError
  779.    pBuf = SS.AppName
  780.    SSGetAppName = 0
  781.    Exit Function
  782.  
  783. SSGetAppNameError:
  784.    SSGetAppName = Err.Number
  785.  
  786. End Function
  787.  
  788. Public Function SSGetAutoRecalc%(SS As Object, pAutoRecalc%)
  789.  
  790.    On Error GoTo SSGetAutoRecalcError
  791.    pAutoRecalc = SS.AutoRecalc
  792.    SSGetAutoRecalc = 0
  793.    Exit Function
  794.  
  795. SSGetAutoRecalcError:
  796.    SSGetAutoRecalc = Err.Number
  797.  
  798. End Function
  799.  
  800. Public Function SSGetBackColor%(SS As Object, pBackColor&)
  801.  
  802.    On Error GoTo SSGetBackColorError
  803.    pBackColor = SS.BackColor
  804.    SSGetBackColor = 0
  805.    Exit Function
  806.  
  807. SSGetBackColorError:
  808.    SSGetBackColor = Err.Number
  809.  
  810. End Function
  811.  
  812. Public Function SSGetBorder%(SS As Object, pLeft%, pRight%, pTop%, pBottom%, pShade%, pcrLeft&, pcrRight&, pcrTop&, pcrBottom&)
  813.  
  814.    On Error GoTo SSGetBorderError
  815.    SS.GetBorder pLeft, pRight, pTop, pBottom, pShade, pcrLeft, pcrRight, pcrTop, pcrBottom
  816.    SSGetBorder = 0
  817.    Exit Function
  818.  
  819. SSGetBorderError:
  820.    SSGetBorder = Err.Number
  821.  
  822. End Function
  823.  
  824. Public Function SSGetColText%(SS As Object, ByVal nCol%, ByVal pBuf$, ByVal nBufSize%)
  825.  
  826.    On Error GoTo SSGetColTextError
  827.    pBuf = SS.ColText(nCol)
  828.    SSGetColText = 0
  829.    Exit Function
  830.  
  831. SSGetColTextError:
  832.    SSGetColText = Err.Number
  833.  
  834. End Function
  835.  
  836. Public Function SSGetColWidth%(SS As Object, ByVal nCol%, pWidth%)
  837.  
  838.    On Error GoTo SSGetColWidthError
  839.    pWidth = SS.ColWidth(nCol)
  840.    SSGetColWidth = 0
  841.    Exit Function
  842.  
  843. SSGetColWidthError:
  844.    SSGetColWidth = Err.Number
  845.  
  846. End Function
  847.  
  848. Public Function SSGetDefaultFont%(SS As Object, ByVal pBuf$, ByVal nBufSize%, pSize%)
  849.  
  850.    On Error GoTo SSGetDefaultFontError
  851.    SS.GetDefaultFont pBuf, pSize
  852.    SSGetDefaultFont = 0
  853.    Exit Function
  854.  
  855. SSGetDefaultFontError:
  856.    SSGetDefaultFont = Err.Number
  857.  
  858. End Function
  859.  
  860. Public Function SSGetDefinedName%(SS As Object, ByVal pName$, ByVal pBuf$, ByVal nBufSize%)
  861.  
  862.    On Error GoTo SSGetDefinedNameError
  863.    SS.GetDefinedName pName, pBuf
  864.    SSGetDefinedName = 0
  865.    Exit Function
  866.  
  867. SSGetDefinedNameError:
  868.    SSGetDefinedName = Err.Number
  869.  
  870. End Function
  871.  
  872. Public Function SSGetEnableProtection%(SS As Object, pEnableProtection%)
  873.  
  874.    On Error GoTo SSGetEnableProtectionError
  875.    pEnableProtection = SS.EnableProtection
  876.    SSGetEnableProtection = 0
  877.    Exit Function
  878.  
  879. SSGetEnableProtectionError:
  880.    SSGetEnableProtection = Err.Number
  881.  
  882. End Function
  883.  
  884. Public Function SSGetEnterMovesDown%(SS As Object, pEnterMovesDown%)
  885.  
  886.    On Error GoTo SSGetEnterMovesDownError
  887.    pEnterMovesDown = SS.EnterMovesDown
  888.    SSGetEnterMovesDown = 0
  889.    Exit Function
  890.  
  891. SSGetEnterMovesDownError:
  892.    SSGetEnterMovesDown = Err.Number
  893.  
  894. End Function
  895.  
  896. Public Function SSGetEntry%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  897.  
  898.    On Error GoTo SSGetEntryError
  899.    pBuf = SS.Entry
  900.    SSGetEntry = 0
  901.    Exit Function
  902.  
  903. SSGetEntryError:
  904.    SSGetEntry = Err.Number
  905.  
  906. End Function
  907.  
  908. Public Function SSGetEntryRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal pBuf$, ByVal nBufSize%)
  909.  
  910.    On Error GoTo SSGetEntryRCError
  911.    pBuf = SS.EntryRC(nRow, nCol)
  912.    SSGetEntryRC = 0
  913.    Exit Function
  914.  
  915. SSGetEntryRCError:
  916.    SSGetEntryRC = Err.Number
  917.  
  918. End Function
  919.  
  920. Public Function SSGetExtraColor%(SS As Object, pExtraColor&)
  921.  
  922.    On Error GoTo SSGetExtraColorError
  923.    pExtraColor = SS.ExtraColor
  924.    SSGetExtraColor = 0
  925.    Exit Function
  926.  
  927. SSGetExtraColorError:
  928.    SSGetExtraColor = Err.Number
  929.  
  930. End Function
  931.  
  932. Public Function SSGetFixedCols%(SS As Object, pC1%, pCols%)
  933.  
  934.    On Error GoTo SSGetFixedColsError
  935.    pCols = SS.FixedCols(pC1)
  936.    SSGetFixedCols = 0
  937.    Exit Function
  938.  
  939. SSGetFixedColsError:
  940.    SSGetFixedCols = Err.Number
  941.  
  942. End Function
  943.  
  944. Public Function SSGetFixedRows%(SS As Object, pR1%, pRows%)
  945.  
  946.    On Error GoTo SSGetFixedRowsError
  947.    pRows = SS.FixedRows(pR1)
  948.    SSGetFixedRows = 0
  949.    Exit Function
  950.  
  951. SSGetFixedRowsError:
  952.    SSGetFixedRows = Err.Number
  953.  
  954. End Function
  955.  
  956. Public Function SSGetFont%(SS As Object, ByVal pBuf$, ByVal nBufSize%, pSize%, pBold%, pItalic%, pUnderline%, pStrikeout%, pcrColor&, pOutline%, pShadow%)
  957.  
  958.    On Error GoTo SSGetFontError
  959.    SS.GetFont pBuf, pSize, pBold, pItalic, pUnderline, pStrikeout, pcrColor, pOutline, pShadow
  960.    SSGetFont = 0
  961.    Exit Function
  962.  
  963. SSGetFontError:
  964.    SSGetFont = Err.Number
  965.  
  966. End Function
  967.  
  968. Public Function SSGetFormattedText%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  969.  
  970.    On Error GoTo SSGetFormattedTextError
  971.    pBuf = SS.FormattedText
  972.    SSGetFormattedText = 0
  973.    Exit Function
  974.  
  975. SSGetFormattedTextError:
  976.    SSGetFormattedText = Err.Number
  977.  
  978. End Function
  979.  
  980. Public Function SSGetFormattedTextRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal pBuf$, ByVal nBufSize%)
  981.  
  982.    On Error GoTo SSGetFormattedTextRCError
  983.    pBuf = SS.FormattedTextRC(nRow, nCol)
  984.    SSGetFormattedTextRC = 0
  985.    Exit Function
  986.  
  987. SSGetFormattedTextRCError:
  988.    SSGetFormattedTextRC = Err.Number
  989.  
  990. End Function
  991.  
  992. Public Function SSGetFormula%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  993.  
  994.    On Error GoTo SSGetFormulaError
  995.    pBuf = SS.Formula
  996.    SSGetFormula = 0
  997.    Exit Function
  998.  
  999. SSGetFormulaError:
  1000.    SSGetFormula = Err.Number
  1001.  
  1002. End Function
  1003.  
  1004. Public Function SSGetFormulaRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal pBuf$, ByVal nBufSize%)
  1005.  
  1006.    On Error GoTo SSGetFormulaRCError
  1007.    pBuf = SS.FormulaRC(nRow, nCol)
  1008.    SSGetFormulaRC = 0
  1009.    Exit Function
  1010.  
  1011. SSGetFormulaRCError:
  1012.    SSGetFormulaRC = Err.Number
  1013.  
  1014. End Function
  1015.  
  1016. Public Function SSGetHdrHeight%(SS As Object, pHeight%)
  1017.  
  1018.    On Error GoTo SSGetHdrHeightError
  1019.    pHeight = SS.HdrHeight
  1020.    SSGetHdrHeight = 0
  1021.    Exit Function
  1022.  
  1023. SSGetHdrHeightError:
  1024.    SSGetHdrHeight = Err.Number
  1025.  
  1026. End Function
  1027.  
  1028. Public Function SSGetHdrSelection%(SS As Object, pTopLeftHdr%, pRowHdr%, pColHdr%)
  1029.  
  1030.    On Error GoTo SSGetHdrSelectionError
  1031.    SS.GetHdrSelection pTopLeftHdr, pRowHdr, pColHdr
  1032.    SSGetHdrSelection = 0
  1033.    Exit Function
  1034.  
  1035. SSGetHdrSelectionError:
  1036.    SSGetHdrSelection = Err.Number
  1037.  
  1038. End Function
  1039.  
  1040. Public Function SSGetHdrWidth%(SS As Object, pWidth%)
  1041.  
  1042.    On Error GoTo SSGetHdrWidthError
  1043.    pWidth = SS.HdrWidth
  1044.    SSGetHdrWidth = 0
  1045.    Exit Function
  1046.  
  1047. SSGetHdrWidthError:
  1048.    SSGetHdrWidth = Err.Number
  1049.  
  1050. End Function
  1051.  
  1052. Public Function SSGetIteration%(SS As Object, pIteration%, pMaxIterations%, pMaxChange#)
  1053.  
  1054.    On Error GoTo SSGetIterationError
  1055.    SS.GetIteration pIteration, pMaxIterations, pMaxChange
  1056.    SSGetIteration = 0
  1057.    Exit Function
  1058.  
  1059. SSGetIterationError:
  1060.    SSGetIteration = Err.Number
  1061.  
  1062. End Function
  1063.  
  1064. Public Function SSGetLastCol%(SS As Object, pLastCol%)
  1065.  
  1066.    On Error GoTo SSGetLastColError
  1067.    pLastCol = SS.LastCol
  1068.    SSGetLastCol = 0
  1069.    Exit Function
  1070.  
  1071. SSGetLastColError:
  1072.    SSGetLastCol = Err.Number
  1073.  
  1074. End Function
  1075.  
  1076. Public Function SSGetLastColForRow%(SS As Object, ByVal nRow%, pLastColForRow%)
  1077.  
  1078.    On Error GoTo SSGetLastColForRowError
  1079.    pLastColForRow = SS.LastColForRow(nRow)
  1080.    SSGetLastColForRow = 0
  1081.    Exit Function
  1082.  
  1083. SSGetLastColForRowError:
  1084.    SSGetLastColForRow = Err.Number
  1085.  
  1086. End Function
  1087.  
  1088. Public Function SSGetLastRow%(SS As Object, pLastRow%)
  1089.  
  1090.    On Error GoTo SSGetLastRowError
  1091.    pLastRow = SS.LastRow
  1092.    SSGetLastRow = 0
  1093.    Exit Function
  1094.  
  1095. SSGetLastRowError:
  1096.    SSGetLastRow = Err.Number
  1097.  
  1098. End Function
  1099.  
  1100. Public Function SSGetLeftCol%(SS As Object, pLeftCol%)
  1101.  
  1102.    On Error GoTo SSGetLeftColError
  1103.    pLeftCol = SS.LeftCol
  1104.    SSGetLeftCol = 0
  1105.    Exit Function
  1106.  
  1107. SSGetLeftColError:
  1108.    SSGetLeftCol = Err.Number
  1109.  
  1110. End Function
  1111.  
  1112. Public Function SSGetLineStyle%(SS As Object, pStyle%, pcrColor&, pWeight%)
  1113.  
  1114.    On Error GoTo SSGetLineStyleError
  1115.    SS.LineStyle pStyle, pcrColor, pWeight
  1116.    SSGetLineStyle = 0
  1117.    Exit Function
  1118.  
  1119. SSGetLineStyleError:
  1120.    SSGetLineStyle = Err.Number
  1121.  
  1122. End Function
  1123.  
  1124. Public Function SSGetLogicalRC%(SS As Object, ByVal nRow%, ByVal nCol%, pIsTrue%)
  1125.  
  1126.    On Error GoTo SSGetLogicalRCError
  1127.    pIsTrue = SS.LogicalRC(nRow, nCol)
  1128.    SSGetLogicalRC = 0
  1129.    Exit Function
  1130.  
  1131. SSGetLogicalRCError:
  1132.    SSGetLogicalRC = Err.Number
  1133.  
  1134. End Function
  1135.  
  1136. Public Function SSGetMinCol%(SS As Object, pMinCol%)
  1137.  
  1138.    On Error GoTo SSGetMinColError
  1139.    pMinCol = SS.MinCol
  1140.    SSGetMinCol = 0
  1141.    Exit Function
  1142.  
  1143. SSGetMinColError:
  1144.    SSGetMinCol = Err.Number
  1145.  
  1146. End Function
  1147.  
  1148. Public Function SSGetMinRow%(SS As Object, pMinRow%)
  1149.  
  1150.    On Error GoTo SSGetMinRowError
  1151.    pMinRow = SS.MinRow
  1152.    SSGetMinRow = 0
  1153.    Exit Function
  1154.  
  1155. SSGetMinRowError:
  1156.    SSGetMinRow = Err.Number
  1157.  
  1158. End Function
  1159.  
  1160. Public Function SSGetMaxCol%(SS As Object, pMaxCol%)
  1161.  
  1162.    On Error GoTo SSGetMaxColError
  1163.    pMaxCol = SS.MaxCol
  1164.    SSGetMaxCol = 0
  1165.    Exit Function
  1166.  
  1167. SSGetMaxColError:
  1168.    SSGetMaxCol = Err.Number
  1169.  
  1170. End Function
  1171.  
  1172. Public Function SSGetMaxRow%(SS As Object, pMaxRow%)
  1173.  
  1174.    On Error GoTo SSGetMaxRowError
  1175.    pMaxRow = SS.MaxRow
  1176.    SSGetMaxRow = 0
  1177.    Exit Function
  1178.  
  1179. SSGetMaxRowError:
  1180.    SSGetMaxRow = Err.Number
  1181.  
  1182. End Function
  1183.  
  1184. Public Function SSGetMode%(SS As Object, pMode%)
  1185.  
  1186.    On Error GoTo SSGetModeError
  1187.    pMode = SS.Mode
  1188.    SSGetMode = 0
  1189.    Exit Function
  1190.  
  1191. SSGetModeError:
  1192.    SSGetMode = Err.Number
  1193.  
  1194. End Function
  1195.  
  1196. Public Function SSGetNumber%(SS As Object, pNumber#)
  1197.  
  1198.    On Error GoTo SSGetNumberError
  1199.    pNumber = SS.Number
  1200.    SSGetNumber = 0
  1201.    Exit Function
  1202.  
  1203. SSGetNumberError:
  1204.    SSGetNumber = Err.Number
  1205.  
  1206. End Function
  1207.  
  1208. Public Function SSGetNumberFormat%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1209.  
  1210.    On Error GoTo SSGetNumberFormatError
  1211.    pBuf = SS.NumberFormat
  1212.    SSGetNumberFormat = 0
  1213.    Exit Function
  1214.  
  1215. SSGetNumberFormatError:
  1216.    SSGetNumberFormat = Err.Number
  1217.  
  1218. End Function
  1219.  
  1220. Public Function SSGetNumberRC%(SS As Object, ByVal nRow%, ByVal nCol%, pNumber#)
  1221.  
  1222.    On Error GoTo SSGetNumberRCError
  1223.    pNumber = SS.NumberRC(nRow, nCol)
  1224.    SSGetNumberRC = 0
  1225.    Exit Function
  1226.  
  1227. SSGetNumberRCError:
  1228.    SSGetNumberRC = Err.Number
  1229.  
  1230. End Function
  1231.  
  1232. Public Function SSGetPattern%(SS As Object, pPattern%, pcrFG&, pcrBG&)
  1233.  
  1234.    On Error GoTo SSGetPatternError
  1235.    SS.GetPattern pPattern, pcrFG, pcrBG
  1236.    SSGetPattern = 0
  1237.    Exit Function
  1238.  
  1239. SSGetPatternError:
  1240.    SSGetPattern = Err.Number
  1241.  
  1242. End Function
  1243.  
  1244. Public Function SSGetPolyEditMode%(SS As Object, pPolyEditMode%)
  1245.  
  1246.    On Error GoTo SSGetPolyEditModeError
  1247.    pPolyEditMode = SS.PolyEditMode
  1248.    SSGetPolyEditMode = 0
  1249.    Exit Function
  1250.  
  1251. SSGetPolyEditModeError:
  1252.    SSGetPolyEditMode = Err.Number
  1253.  
  1254. End Function
  1255.  
  1256. Public Function SSGetPrintArea%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1257.  
  1258.    On Error GoTo SSGetPrintAreaError
  1259.    pBuf = SS.PrintArea
  1260.    SSGetPrintArea = 0
  1261.    Exit Function
  1262.  
  1263. SSGetPrintAreaError:
  1264.    SSGetPrintArea = Err.Number
  1265.  
  1266. End Function
  1267.  
  1268. Public Function SSGetPrintBottomMargin%(SS As Object, pPrintBottomMargin#)
  1269.  
  1270.    On Error GoTo SSGetPrintBottomMarginError
  1271.    pPrintBottomMargin = SS.PrintBottomMargin
  1272.    SSGetPrintBottomMargin = 0
  1273.    Exit Function
  1274.  
  1275. SSGetPrintBottomMarginError:
  1276.    SSGetPrintBottomMargin = Err.Number
  1277.  
  1278. End Function
  1279.  
  1280. Public Function SSGetPrintColHeading%(SS As Object, pPrintColHeading%)
  1281.  
  1282.    On Error GoTo SSGetPrintColHeadingError
  1283.    pPrintColHeading = SS.PrintColHeading
  1284.    SSGetPrintColHeading = 0
  1285.    Exit Function
  1286.  
  1287. SSGetPrintColHeadingError:
  1288.    SSGetPrintColHeading = Err.Number
  1289.  
  1290. End Function
  1291.  
  1292. Public Function SSGetPrintFooter%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1293.  
  1294.    On Error GoTo SSGetPrintFooterError
  1295.    pBuf = SS.PrintFooter
  1296.    SSGetPrintFooter = 0
  1297.    Exit Function
  1298.  
  1299. SSGetPrintFooterError:
  1300.    SSGetPrintFooter = Err.Number
  1301.  
  1302. End Function
  1303.  
  1304. Public Function SSGetPrintGridLines%(SS As Object, pPrintGridLines%)
  1305.  
  1306.    On Error GoTo SSGetPrintGridLinesError
  1307.    pPrintGridLines = SS.PrintGridLines
  1308.    SSGetPrintGridLines = 0
  1309.    Exit Function
  1310.  
  1311. SSGetPrintGridLinesError:
  1312.    SSGetPrintGridLines = Err.Number
  1313.  
  1314. End Function
  1315.  
  1316. Public Function SSGetPrintHCenter%(SS As Object, pPrintHCenter%)
  1317.  
  1318.    On Error GoTo SSGetPrintHCenterError
  1319.    pPrintHCenter = SS.PrintHCenter
  1320.    SSGetPrintHCenter = 0
  1321.    Exit Function
  1322.  
  1323. SSGetPrintHCenterError:
  1324.    SSGetPrintHCenter = Err.Number
  1325.  
  1326. End Function
  1327.  
  1328. Public Function SSGetPrintHeader%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1329.  
  1330.    On Error GoTo SSGetPrintHeaderError
  1331.    pBuf = SS.PrintHeader
  1332.    SSGetPrintHeader = 0
  1333.    Exit Function
  1334.  
  1335. SSGetPrintHeaderError:
  1336.    SSGetPrintHeader = Err.Number
  1337.  
  1338. End Function
  1339.  
  1340. Public Function SSGetPrintLandscape%(SS As Object, pLandscape%)
  1341.  
  1342.    On Error GoTo SSGetPrintLandscapeError
  1343.    pLandscape = SS.PrintLandscape
  1344.    SSGetPrintLandscape = 0
  1345.    Exit Function
  1346.  
  1347. SSGetPrintLandscapeError:
  1348.    SSGetPrintLandscape = Err.Number
  1349.  
  1350. End Function
  1351.  
  1352. Public Function SSGetPrintLeftMargin%(SS As Object, pPrintLeftMargin#)
  1353.  
  1354.    On Error GoTo SSGetPrintLeftMarginError
  1355.    pPrintLeftMargin = SS.PrintLeftMargin
  1356.    SSGetPrintLeftMargin = 0
  1357.    Exit Function
  1358.  
  1359. SSGetPrintLeftMarginError:
  1360.    SSGetPrintLeftMargin = Err.Number
  1361.  
  1362. End Function
  1363.  
  1364. Public Function SSGetPrintLeftToRight%(SS As Object, pPrintLeftToRight%)
  1365.  
  1366.    On Error GoTo SSGetPrintLeftToRightError
  1367.    pPrintLeftToRight = SS.PrintLeftToRight
  1368.    SSGetPrintLeftToRight = 0
  1369.    Exit Function
  1370.  
  1371. SSGetPrintLeftToRightError:
  1372.    SSGetPrintLeftToRight = Err.Number
  1373.  
  1374. End Function
  1375.  
  1376. Public Function SSGetPrintNoColor%(SS As Object, pNoColor%)
  1377.  
  1378.    On Error GoTo SSGetPrintNoColorError
  1379.    pNoColor = SS.PrintNoColor
  1380.    SSGetPrintNoColor = 0
  1381.    Exit Function
  1382.  
  1383. SSGetPrintNoColorError:
  1384.    SSGetPrintNoColor = Err.Number
  1385.  
  1386. End Function
  1387.  
  1388. Public Function SSGetPrintRightMargin%(SS As Object, pPrintRightMargin#)
  1389.  
  1390.    On Error GoTo SSGetPrintRightMarginError
  1391.    pPrintRightMargin = SS.PrintRightMargin
  1392.    SSGetPrintRightMargin = 0
  1393.    Exit Function
  1394.  
  1395. SSGetPrintRightMarginError:
  1396.    SSGetPrintRightMargin = Err.Number
  1397.  
  1398. End Function
  1399.  
  1400. Public Function SSGetPrintRowHeading%(SS As Object, pPrintRowHeading%)
  1401.  
  1402.    On Error GoTo SSGetPrintRowHeadingError
  1403.    pPrintRowHeading = SS.PrintRowHeading
  1404.    SSGetPrintRowHeading = 0
  1405.    Exit Function
  1406.  
  1407. SSGetPrintRowHeadingError:
  1408.    SSGetPrintRowHeading = Err.Number
  1409.  
  1410. End Function
  1411.  
  1412. Public Function SSGetPrintScale%(SS As Object, pScale%, pFitToPage%, pVPages%, pHPages%)
  1413.  
  1414.    On Error GoTo SSGetPrintScaleError
  1415.    SS.GetPrintScale pScale, pFitToPage, pVPages, pHPages
  1416.    SSGetPrintScale = 0
  1417.    Exit Function
  1418.  
  1419. SSGetPrintScaleError:
  1420.    SSGetPrintScale = Err.Number
  1421.  
  1422. End Function
  1423.  
  1424. Public Function SSGetPrintTitles%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1425.  
  1426.    On Error GoTo SSGetPrintTitlesError
  1427.    pBuf = SS.PrintTitles
  1428.    SSGetPrintTitles = 0
  1429.    Exit Function
  1430.  
  1431. SSGetPrintTitlesError:
  1432.    SSGetPrintTitles = Err.Number
  1433.  
  1434. End Function
  1435.  
  1436. Public Function SSGetPrintTopMargin%(SS As Object, pPrintTopMargin#)
  1437.  
  1438.    On Error GoTo SSGetPrintTopMarginError
  1439.    pPrintTopMargin = SS.PrintTopMargin
  1440.    SSGetPrintTopMargin = 0
  1441.    Exit Function
  1442.  
  1443. SSGetPrintTopMarginError:
  1444.    SSGetPrintTopMargin = Err.Number
  1445.  
  1446. End Function
  1447.  
  1448. Public Function SSGetPrintVCenter%(SS As Object, pPrintVCenter%)
  1449.  
  1450.    On Error GoTo SSGetPrintVCenterError
  1451.    pPrintVCenter = SS.PrintVCenter
  1452.    SSGetPrintVCenter = 0
  1453.    Exit Function
  1454.  
  1455. SSGetPrintVCenterError:
  1456.    SSGetPrintVCenter = Err.Number
  1457.  
  1458. End Function
  1459.  
  1460. Public Function SSGetProtection%(SS As Object, pLocked%, pHidden%)
  1461.  
  1462.    On Error GoTo SSGetProtectionError
  1463.    SS.GetProtection pLocked, pHidden
  1464.    SSGetProtection = 0
  1465.    Exit Function
  1466.  
  1467. SSGetProtectionError:
  1468.    SSGetProtection = Err.Number
  1469.  
  1470. End Function
  1471.  
  1472. Public Function SSGetRepaint%(SS As Object, pRepaint%)
  1473.  
  1474.    On Error GoTo SSGetRepaintError
  1475.    pRepaint = SS.Repaint
  1476.    SSGetRepaint = 0
  1477.    Exit Function
  1478.  
  1479. SSGetRepaintError:
  1480.    SSGetRepaint = Err.Number
  1481.  
  1482. End Function
  1483.  
  1484. Public Function SSGetRowHeight%(SS As Object, ByVal nRow%, pHeight%)
  1485.  
  1486.    On Error GoTo SSGetRowHeightError
  1487.    pHeight = SS.RowHeight(nRow)
  1488.    SSGetRowHeight = 0
  1489.    Exit Function
  1490.  
  1491. SSGetRowHeightError:
  1492.    SSGetRowHeight = Err.Number
  1493.  
  1494. End Function
  1495.  
  1496. Public Function SSGetRowMode%(SS As Object, pRowMode%)
  1497.  
  1498.    On Error GoTo SSGetRowModeError
  1499.    pRowMode = SS.RowMode
  1500.    SSGetRowMode = 0
  1501.    Exit Function
  1502.  
  1503. SSGetRowModeError:
  1504.    SSGetRowMode = Err.Number
  1505.  
  1506. End Function
  1507.  
  1508. Public Function SSGetRowText%(SS As Object, ByVal nRow%, ByVal pBuf$, ByVal nBufSize%)
  1509.  
  1510.    On Error GoTo SSGetRowTextError
  1511.    pBuf = SS.RowText(nRow)
  1512.    SSGetRowText = 0
  1513.    Exit Function
  1514.  
  1515. SSGetRowTextError:
  1516.    SSGetRowText = Err.Number
  1517.  
  1518. End Function
  1519.  
  1520. Public Function SSGetScale%(SS As Object, pScale%)
  1521.  
  1522.    On Error GoTo SSGetScaleError
  1523.    pScale = SS.Scale
  1524.    SSGetScale = 0
  1525.    Exit Function
  1526.  
  1527. SSGetScaleError:
  1528.    SSGetScale = Err.Number
  1529.  
  1530. End Function
  1531.  
  1532. Public Function SSGetSelection%(SS As Object, ByVal nSelection%, pR1%, pC1%, pR2%, pC2%)
  1533.  
  1534.    On Error GoTo SSGetSelectionError
  1535.    SS.GetSelection nSelection, pR1, pC1, pR2, pC2
  1536.    SSGetSelection = 0
  1537.    Exit Function
  1538.  
  1539. SSGetSelectionError:
  1540.    SSGetSelection = Err.Number
  1541.  
  1542. End Function
  1543.  
  1544. Public Function SSGetSelectionCount%(SS As Object, pCount%)
  1545.  
  1546.    On Error GoTo SSGetSelectionCountError
  1547.    pCount = SS.SelectionCount
  1548.    SSGetSelectionCount = 0
  1549.    Exit Function
  1550.  
  1551. SSGetSelectionCountError:
  1552.    SSGetSelectionCount = Err.Number
  1553.  
  1554. End Function
  1555.  
  1556. Public Function SSGetSelectionRef%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1557.  
  1558.    On Error GoTo SSGetSelectionRefError
  1559.    pBuf = SS.SelectionRef
  1560.    SSGetSelectionRef = 0
  1561.    Exit Function
  1562.  
  1563. SSGetSelectionRefError:
  1564.    SSGetSelectionRef = Err.Number
  1565.  
  1566. End Function
  1567.  
  1568. Public Function SSGetShowColHeading%(SS As Object, pShowColHeading%)
  1569.  
  1570.    On Error GoTo SSGetShowColHeadingError
  1571.    pShowColHeading = SS.ShowColHeading
  1572.    SSGetShowColHeading = 0
  1573.    Exit Function
  1574.  
  1575. SSGetShowColHeadingError:
  1576.    SSGetShowColHeading = Err.Number
  1577.  
  1578. End Function
  1579.  
  1580. Public Function SSGetShowFormulas%(SS As Object, pShowFormulas%)
  1581.  
  1582.    On Error GoTo SSGetShowFormulasError
  1583.    pShowFormulas = SS.ShowFormulas
  1584.    SSGetShowFormulas = 0
  1585.    Exit Function
  1586.  
  1587. SSGetShowFormulasError:
  1588.    SSGetShowFormulas = Err.Number
  1589.  
  1590. End Function
  1591.  
  1592. Public Function SSGetShowGridLines%(SS As Object, pShowGridLines%)
  1593.  
  1594.    On Error GoTo SSGetShowGridLinesError
  1595.    pShowGridLines = SS.ShowGridLines
  1596.    SSGetShowGridLines = 0
  1597.    Exit Function
  1598.  
  1599. SSGetShowGridLinesError:
  1600.    SSGetShowGridLines = Err.Number
  1601.  
  1602. End Function
  1603.  
  1604. Public Function SSGetShowHScrollBar%(SS As Object, pShowHScrollBar%)
  1605.  
  1606.    On Error GoTo SSGetShowHScrollBarError
  1607.    pShowHScrollBar = SS.ShowHScrollBar
  1608.    SSGetShowHScrollBar = 0
  1609.    Exit Function
  1610.  
  1611. SSGetShowHScrollBarError:
  1612.    SSGetShowHScrollBar = Err.Number
  1613.  
  1614. End Function
  1615.  
  1616. Public Function SSGetShowRowHeading%(SS As Object, pShowRowHeading%)
  1617.  
  1618.    On Error GoTo SSGetShowRowHeadingError
  1619.    pShowRowHeading = SS.ShowRowHeading
  1620.    SSGetShowRowHeading = 0
  1621.    Exit Function
  1622.  
  1623. SSGetShowRowHeadingError:
  1624.    SSGetShowRowHeading = Err.Number
  1625.  
  1626. End Function
  1627.  
  1628. Public Function SSGetShowSelections%(SS As Object, pShowSelections%)
  1629.  
  1630.    On Error GoTo SSGetShowSelectionsError
  1631.    pShowSelections = SS.ShowSelections
  1632.    SSGetShowSelections = 0
  1633.    Exit Function
  1634.  
  1635. SSGetShowSelectionsError:
  1636.    SSGetShowSelections = Err.Number
  1637.  
  1638. End Function
  1639.  
  1640. Public Function SSGetShowVScrollBar%(SS As Object, pShowVScrollBar%)
  1641.  
  1642.    On Error GoTo SSGetShowVScrollBarError
  1643.    pShowVScrollBar = SS.ShowVScrollBar
  1644.    SSGetShowVScrollBar = 0
  1645.    Exit Function
  1646.  
  1647. SSGetShowVScrollBarError:
  1648.    SSGetShowVScrollBar = Err.Number
  1649.  
  1650. End Function
  1651.  
  1652. Public Function SSGetShowZeroValues%(SS As Object, pShowZeroValues%)
  1653.  
  1654.    On Error GoTo SSGetShowZeroValuesError
  1655.    pShowZeroValues = SS.ShowZeroValues
  1656.    SSGetShowZeroValues = 0
  1657.    Exit Function
  1658.  
  1659. SSGetShowZeroValuesError:
  1660.    SSGetShowZeroValues = Err.Number
  1661.  
  1662. End Function
  1663.  
  1664. Public Function SSGetTabbedText%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%, ByVal bValuesOnly%, phText%)
  1665.  
  1666.    On Error GoTo SSGetTabbedTextError
  1667.    SS.GetTabbedText nR1, nC1, nR2, nC2, bValuesOnly, phText
  1668.    SSGetTabbedText = 0
  1669.    Exit Function
  1670.  
  1671. SSGetTabbedTextError:
  1672.    SSGetTabbedText = Err.Number
  1673.  
  1674. End Function
  1675.  
  1676. Public Function SSGetText%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1677.  
  1678.    On Error GoTo SSGetTextError
  1679.    pBuf = SS.TEXT
  1680.    SSGetText = 0
  1681.    Exit Function
  1682.  
  1683. SSGetTextError:
  1684.    SSGetText = Err.Number
  1685.  
  1686. End Function
  1687.  
  1688. Public Function SSGetTextRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal pBuf$, ByVal nBufSize%)
  1689.  
  1690.    On Error GoTo SSGetTextRCError
  1691.    pBuf = SS.TextRC(nRow, nCol)
  1692.    SSGetTextRC = 0
  1693.    Exit Function
  1694.  
  1695. SSGetTextRCError:
  1696.    SSGetTextRC = Err.Number
  1697.  
  1698. End Function
  1699.  
  1700. Public Function SSGetTitle%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1701.  
  1702.    On Error GoTo SSGetTitleError
  1703.    pBuf = SS.Title
  1704.    SSGetTitle = 0
  1705.    Exit Function
  1706.  
  1707. SSGetTitleError:
  1708.    SSGetTitle = Err.Number
  1709.  
  1710. End Function
  1711.  
  1712. Public Function SSGetTopLeftText%(SS As Object, ByVal pBuf$, ByVal nBufSize%)
  1713.  
  1714.    On Error GoTo SSGetTopLeftTextError
  1715.    pBuf = SS.TopLeftText
  1716.    SSGetTopLeftText = 0
  1717.    Exit Function
  1718.  
  1719. SSGetTopLeftTextError:
  1720.    SSGetTopLeftText = Err.Number
  1721.  
  1722. End Function
  1723.  
  1724. Public Function SSGetTopRow%(SS As Object, pTopRow%)
  1725.  
  1726.    On Error GoTo SSGetTopRowError
  1727.    pTopRow = SS.TopRow
  1728.    SSGetTopRow = 0
  1729.    Exit Function
  1730.  
  1731. SSGetTopRowError:
  1732.    SSGetTopRow = Err.Number
  1733.  
  1734. End Function
  1735.  
  1736. Public Function SSGetTypeRC%(SS As Object, ByVal nRow%, ByVal nCol%, pType%)
  1737.  
  1738.    On Error GoTo SSGetTypeRCError
  1739.    pType = SS.TypeRC(nRow, nCol)
  1740.    SSGetTypeRC = 0
  1741.    Exit Function
  1742.  
  1743. SSGetTypeRCError:
  1744.    SSGetTypeRC = Err.Number
  1745.  
  1746. End Function
  1747.  
  1748. Public Function SSGotoDlg%(SS As Object)
  1749.  
  1750.    On Error GoTo SSGotoDlgError
  1751.    SS.GotoDlg
  1752.    SSGotoDlg = 0
  1753.    Exit Function
  1754.  
  1755. SSGotoDlgError:
  1756.    SSGotoDlg = Err.Number
  1757.  
  1758. End Function
  1759.  
  1760. Public Sub SSHeapMin()
  1761. Public Function SSInitTable%(SS As Object)
  1762.  
  1763.    On Error GoTo SSInitTableError
  1764.    SS.InitTable
  1765.    SSInitTable = 0
  1766.    Exit Function
  1767.  
  1768. SSInitTableError:
  1769.    SSInitTable = Err.Number
  1770.  
  1771. End Function
  1772.  
  1773. Public Function SSInsertRange%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%, ByVal nShiftType%)
  1774.  
  1775.    On Error GoTo SSInsertRangeError
  1776.    SS.InsertRange nR1, nC1, nR2, nC2, nShiftType
  1777.    SSInsertRange = 0
  1778.    Exit Function
  1779.  
  1780. SSInsertRangeError:
  1781.    SSInsertRange = Err.Number
  1782.  
  1783. End Function
  1784.  
  1785. Public Function SSLaunchAppDesigner%(SS As Object)
  1786.  
  1787.    On Error GoTo SSLaunchAppDesignerError
  1788.    SS.LaunchAppDesigner
  1789.    SSLaunchAppDesigner = 0
  1790.    Exit Function
  1791.  
  1792. SSLaunchAppDesignerError:
  1793.    SSLaunchAppDesigner = Err.Number
  1794.  
  1795. End Function
  1796.  
  1797. Public Function SSLineStyleDlg%(SS As Object)
  1798.  
  1799.    On Error GoTo SSLineStyleDlgError
  1800.    SS.LineStyleDlg
  1801.    SSLineStyleDlg = 0
  1802.    Exit Function
  1803.  
  1804. SSLineStyleDlgError:
  1805.    SSLineStyleDlg = Err.Number
  1806.  
  1807. End Function
  1808.  
  1809. Public Function SSMoveRange%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%, ByVal nRowOffset%, ByVal nColOffset%)
  1810.  
  1811.    On Error GoTo SSMoveRangeError
  1812.    SS.MoveRange nR1, nC1, nR2, nC2, nRowOffset, nColOffset
  1813.    SSMoveRange = 0
  1814.    Exit Function
  1815.  
  1816. SSMoveRangeError:
  1817.    SSMoveRange = Err.Number
  1818.  
  1819. End Function
  1820.  
  1821. Public Function SSNextColPageBreak%(SS As Object, ByVal nCol%, pNextCol%)
  1822.  
  1823.    On Error GoTo SSNextColPageBreakError
  1824.    pNextCol = SS.NextColPageBreak(nCol)
  1825.    SSNextColPageBreak = 0
  1826.    Exit Function
  1827.  
  1828. SSNextColPageBreakError:
  1829.    SSNextColPageBreak = Err.Number
  1830.  
  1831. End Function
  1832.  
  1833. Public Function SSNextRowPageBreak%(SS As Object, ByVal nRow%, pNextRow%)
  1834.  
  1835.    On Error GoTo SSNextRowPageBreakError
  1836.    pNextRow = SS.NextRowPageBreak(nRow)
  1837.    SSNextRowPageBreak = 0
  1838.    Exit Function
  1839.  
  1840. SSNextRowPageBreakError:
  1841.    SSNextRowPageBreak = Err.Number
  1842.  
  1843. End Function
  1844.  
  1845. Public Function SSObjAddItem%(SS As Object, ByVal ID&, ByVal pItem$)
  1846.  
  1847.    On Error GoTo SSObjAddItemError
  1848.    SS.ObjAddItem ID, pItem
  1849.    SSObjAddItem = 0
  1850.    Exit Function
  1851.  
  1852. SSObjAddItemError:
  1853.    SSObjAddItem = Err.Number
  1854.  
  1855. End Function
  1856.  
  1857. Public Function SSObjAddSelection%(SS As Object, ByVal ID&)
  1858.  
  1859.    On Error GoTo SSObjAddSelectionError
  1860.    SS.ObjAddSelection ID
  1861.    SSObjAddSelection = 0
  1862.    Exit Function
  1863.  
  1864. SSObjAddSelectionError:
  1865.    SSObjAddSelection = Err.Number
  1866.  
  1867. End Function
  1868.  
  1869. Public Function SSObjBringToFront%(SS As Object)
  1870.  
  1871.    On Error GoTo SSObjBringToFrontError
  1872.    SS.ObjBringToFront
  1873.    SSObjBringToFront = 0
  1874.    Exit Function
  1875.  
  1876. SSObjBringToFrontError:
  1877.    SSObjBringToFront = Err.Number
  1878.  
  1879. End Function
  1880.  
  1881. Public Function SSObjDeleteItem%(SS As Object, ByVal ID&, ByVal nItem%)
  1882.  
  1883.    On Error GoTo SSObjDeleteItemError
  1884.    SS.ObjDeleteItem ID, nItem
  1885.    SSObjDeleteItem = 0
  1886.    Exit Function
  1887.  
  1888. SSObjDeleteItemError:
  1889.    SSObjDeleteItem = Err.Number
  1890.  
  1891. End Function
  1892.  
  1893. Public Function SSObjFirstID%(SS As Object, pFirstID&)
  1894.  
  1895.    On Error GoTo SSObjFirstIDError
  1896.    SS.ObjFirstID pFirstID
  1897.    SSObjFirstID = 0
  1898.    Exit Function
  1899.  
  1900. SSObjFirstIDError:
  1901.    SSObjFirstID = Err.Number
  1902.  
  1903. End Function
  1904.  
  1905. Public Function SSObjGetCell%(SS As Object, ByVal ID&, pHasCell%, pRow%, pCol%)
  1906.  
  1907.    On Error GoTo SSObjGetCellError
  1908.    SS.ObjGetCell ID, pHasCell, pRow, pCol
  1909.    SSObjGetCell = 0
  1910.    Exit Function
  1911.  
  1912. SSObjGetCellError:
  1913.    SSObjGetCell = Err.Number
  1914.  
  1915. End Function
  1916.  
  1917. Public Function SSObjGetItem%(SS As Object, ByVal ID&, ByVal nItem%, ByVal pBuf$, ByVal nBufSize%)
  1918.  
  1919.    On Error GoTo SSObjGetItemError
  1920.    SS.ObjGetItem ID, nItem, pBuf
  1921.    SSObjGetItem = 0
  1922.    Exit Function
  1923.  
  1924. SSObjGetItemError:
  1925.    SSObjGetItem = Err.Number
  1926.  
  1927. End Function
  1928.  
  1929. Public Function SSObjGetItemCount%(SS As Object, ByVal ID&, pItems%)
  1930.  
  1931.    On Error GoTo SSObjGetItemCountError
  1932.    SS.ObjGetItemCount ID, pItems
  1933.    SSObjGetItemCount = 0
  1934.    Exit Function
  1935.  
  1936. SSObjGetItemCountError:
  1937.    SSObjGetItemCount = Err.Number
  1938.  
  1939. End Function
  1940.  
  1941. Public Function SSObjGetItems%(SS As Object, ByVal ID&, ByVal pBuf$, ByVal nBufSize%)
  1942.  
  1943.    On Error GoTo SSObjGetItemsError
  1944.    SS.ObjGetItems ID, pBuf
  1945.    SSObjGetItems = 0
  1946.    Exit Function
  1947.  
  1948. SSObjGetItemsError:
  1949.    SSObjGetItems = Err.Number
  1950.  
  1951. End Function
  1952.  
  1953. Public Function SSObjGetName%(SS As Object, ByVal ID&, ByVal pBuf$, ByVal nBufSize%)
  1954.  
  1955.    On Error GoTo SSObjGetNameError
  1956.    SS.ObjGetName ID, pBuf
  1957.    SSObjGetName = 0
  1958.    Exit Function
  1959.  
  1960. SSObjGetNameError:
  1961.    SSObjGetName = Err.Number
  1962.  
  1963. End Function
  1964.  
  1965. Public Function SSObjGetPos%(SS As Object, ByVal ID&, pX1!, pY1!, pX2!, pY2!)
  1966.  
  1967.    On Error GoTo SSObjGetPosError
  1968.    SS.ObjGetPos ID, pX1, pY1, pX2, pY2
  1969.    SSObjGetPos = 0
  1970.    Exit Function
  1971.  
  1972. SSObjGetPosError:
  1973.    SSObjGetPos = Err.Number
  1974.  
  1975. End Function
  1976.  
  1977. Public Function SSObjGetSelection%(SS As Object, ByVal nSelection%, pID&)
  1978.  
  1979.    On Error GoTo SSObjGetSelectionError
  1980.    SS.ObjGetSelection nSelection, pID
  1981.    SSObjGetSelection = 0
  1982.    Exit Function
  1983.  
  1984. SSObjGetSelectionError:
  1985.    SSObjGetSelection = Err.Number
  1986.  
  1987. End Function
  1988.  
  1989. Public Function SSObjGetSelectionCount%(SS As Object, pCount%)
  1990.  
  1991.    On Error GoTo SSObjGetSelectionCountError
  1992.    pCount = SS.ObjGetSelectionCount
  1993.    SSObjGetSelectionCount = 0
  1994.    Exit Function
  1995.  
  1996. SSObjGetSelectionCountError:
  1997.    SSObjGetSelectionCount = Err.Number
  1998.  
  1999. End Function
  2000.  
  2001. Public Function SSObjGetText%(SS As Object, ByVal ID&, ByVal pBuf$, ByVal nBufSize%)
  2002.  
  2003.    On Error GoTo SSObjGetTextError
  2004.    SS.ObjGetText ID, pBuf, nBufSize
  2005.    SSObjGetText = 0
  2006.    Exit Function
  2007.  
  2008. SSObjGetTextError:
  2009.    SSObjGetText = Err.Number
  2010.  
  2011. End Function
  2012.  
  2013. Public Function SSObjGetType%(SS As Object, ByVal ID&, pType%)
  2014.  
  2015.    On Error GoTo SSObjGetTypeError
  2016.    SS.ObjGetType ID, pType
  2017.    SSObjGetType = 0
  2018.    Exit Function
  2019.  
  2020. SSObjGetTypeError:
  2021.    SSObjGetType = Err.Number
  2022.  
  2023. End Function
  2024.  
  2025. Public Function SSObjGetValue%(SS As Object, ByVal ID&, pValue%)
  2026.  
  2027.    On Error GoTo SSObjGetValueError
  2028.    SS.ObjGetValue ID, pValue
  2029.    SSObjGetValue = 0
  2030.    Exit Function
  2031.  
  2032. SSObjGetValueError:
  2033.    SSObjGetValue = Err.Number
  2034.  
  2035. End Function
  2036.  
  2037. Public Function SSObjGetVisible%(SS As Object, ByVal ID&, pVisible%)
  2038.  
  2039.    On Error GoTo SSObjGetVisibleError
  2040.    SS.ObjGetVisible ID, pVisible
  2041.    SSObjGetVisible = 0
  2042.    Exit Function
  2043.  
  2044. SSObjGetVisibleError:
  2045.    SSObjGetVisible = Err.Number
  2046.  
  2047. End Function
  2048.  
  2049. Public Function SSObjInsertItem%(SS As Object, ByVal ID&, ByVal nItem%, ByVal pItem$)
  2050.  
  2051.    On Error GoTo SSObjInsertItemError
  2052.    SS.ObjInsertItem ID, nItem, pItem
  2053.    SSObjInsertItem = 0
  2054.    Exit Function
  2055.  
  2056. SSObjInsertItemError:
  2057.    SSObjInsertItem = Err.Number
  2058.  
  2059. End Function
  2060.  
  2061. Public Function SSObjNameDlg%(SS As Object)
  2062.  
  2063.    On Error GoTo SSObjNameDlgError
  2064.    SS.ObjNameDlg
  2065.    SSObjNameDlg = 0
  2066.    Exit Function
  2067.  
  2068. SSObjNameDlgError:
  2069.    SSObjNameDlg = Err.Number
  2070.  
  2071. End Function
  2072.  
  2073. Public Function SSObjNameToID%(SS As Object, ByVal pName$, pID&)
  2074.  
  2075.    On Error GoTo SSObjNameToIDError
  2076.    pID = SS.ObjNameToID(pName)
  2077.    SSObjNameToID = 0
  2078.    Exit Function
  2079.  
  2080. SSObjNameToIDError:
  2081.    SSObjNameToID = Err.Number
  2082.  
  2083. End Function
  2084.  
  2085. Public Function SSObjNew%(SS As Object, ByVal nType%, ByVal nX1!, ByVal nY1!, ByVal nX2!, ByVal nY2!, pID&)
  2086.  
  2087.    On Error GoTo SSObjNewError
  2088.    SS.ObjNew nType, nX1, nY1, nX2, nY2, pID
  2089.    SSObjNew = 0
  2090.    Exit Function
  2091.  
  2092. SSObjNewError:
  2093.    SSObjNew = Err.Number
  2094.  
  2095. End Function
  2096.  
  2097. Public Function SSObjNewPicture%(SS As Object, ByVal nX1!, ByVal nY1!, ByVal nX2!, ByVal nY2!, pID&, ByVal hMF%, ByVal nMapMode%, ByVal nWndExtentX%, ByVal nWndExtentY%)
  2098.  
  2099.    On Error GoTo SSObjNewPictureError
  2100.    SS.ObjNewPicture nX1, nY1, nX2, nY2, pID, hMF, nMapMode, nWndExtentX, nWndExtentY
  2101.    SSObjNewPicture = 0
  2102.    Exit Function
  2103.  
  2104. SSObjNewPictureError:
  2105.    SSObjNewPicture = Err.Number
  2106.  
  2107. End Function
  2108.  
  2109. Public Function SSObjNextID%(SS As Object, ByVal ID&, pNextID&)
  2110.  
  2111.    On Error GoTo SSObjNextIDError
  2112.    pNextID = SS.ObjNextID(ID)
  2113.    SSObjNextID = 0
  2114.    Exit Function
  2115.  
  2116. SSObjNextIDError:
  2117.    SSObjNextID = Err.Number
  2118.  
  2119. End Function
  2120.  
  2121. Public Function SSObjOptionsDlg%(SS As Object)
  2122.  
  2123.    On Error GoTo SSObjOptionsDlgError
  2124.    SS.ObjOptionsDlg
  2125.    SSObjOptionsDlg = 0
  2126.    Exit Function
  2127.  
  2128. SSObjOptionsDlgError:
  2129.    SSObjOptionsDlg = Err.Number
  2130.  
  2131. End Function
  2132.  
  2133. Public Function SSObjPosToTwips%(SS As Object, ByVal nX1!, ByVal nY1!, ByVal nX2!, ByVal nY2!, pX&, pY&, pCX&, pCY&, pShown%)
  2134.  
  2135.    On Error GoTo SSObjPosToTwipsError
  2136.    SS.ObjPosToTwips nX1, nY1, nX2, nY2, pX, pY, pCX, pCY, pShown
  2137.    SSObjPosToTwips = 0
  2138.    Exit Function
  2139.  
  2140. SSObjPosToTwipsError:
  2141.    SSObjPosToTwips = Err.Number
  2142.  
  2143. End Function
  2144.  
  2145. Public Function SSObjSendToBack%(SS As Object)
  2146.  
  2147.    On Error GoTo SSObjSendToBackError
  2148.    SS.ObjSendToBack
  2149.    SSObjSendToBack = 0
  2150.    Exit Function
  2151.  
  2152. SSObjSendToBackError:
  2153.    SSObjSendToBack = Err.Number
  2154.  
  2155. End Function
  2156.  
  2157. Public Function SSObjSetCell%(SS As Object, ByVal ID&, ByVal bHasCell%, ByVal nRow%, ByVal nCol%)
  2158.  
  2159.    On Error GoTo SSObjSetCellError
  2160.    SS.ObjSetCell ID, bHasCell, nRow, nCol
  2161.    SSObjSetCell = 0
  2162.    Exit Function
  2163.  
  2164. SSObjSetCellError:
  2165.    SSObjSetCell = Err.Number
  2166.  
  2167. End Function
  2168.  
  2169. Public Function SSObjSetItem%(SS As Object, ByVal ID&, ByVal nItem%, ByVal pItem$)
  2170.  
  2171.    On Error GoTo SSObjSetItemError
  2172.    SS.ObjSetItem ID, nItem, pItem
  2173.    SSObjSetItem = 0
  2174.    Exit Function
  2175.  
  2176. SSObjSetItemError:
  2177.    SSObjSetItem = Err.Number
  2178.  
  2179. End Function
  2180.  
  2181. Public Function SSObjSetItems%(SS As Object, ByVal ID&, ByVal pItems$)
  2182.  
  2183.    On Error GoTo SSObjSetItemsError
  2184.    SS.ObjSetItems ID, pItems
  2185.    SSObjSetItems = 0
  2186.    Exit Function
  2187.  
  2188. SSObjSetItemsError:
  2189.    SSObjSetItems = Err.Number
  2190.  
  2191. End Function
  2192.  
  2193. Public Function SSObjSetName%(SS As Object, ByVal ID&, ByVal pName$)
  2194.  
  2195.    On Error GoTo SSObjSetNameError
  2196.    pName = SS.ObjName(ID)
  2197.    SSObjSetName = 0
  2198.    Exit Function
  2199.  
  2200. SSObjSetNameError:
  2201.    SSObjSetName = Err.Number
  2202.  
  2203. End Function
  2204.  
  2205. Public Function SSObjSetPicture%(SS As Object, ByVal ID&, ByVal hMF%, ByVal nMapMode%, ByVal nWndExtentX%, ByVal nWndExtentY%)
  2206.  
  2207.    On Error GoTo SSObjSetPictureError
  2208.    SS.ObjSetPicture ID, hMF, nMapMode, nWndExtentX, nWndExtentY
  2209.    SSObjSetPicture = 0
  2210.    Exit Function
  2211.  
  2212. SSObjSetPictureError:
  2213.    SSObjSetPicture = Err.Number
  2214.  
  2215. End Function
  2216.  
  2217. Public Function SSObjSetPos%(SS As Object, ByVal ID&, ByVal nX1!, ByVal nY1!, ByVal nX2!, ByVal nY2!)
  2218.  
  2219.    On Error GoTo SSObjSetPosError
  2220.    SS.ObjSetPos ID, nX1, nY1, nX2, nY2
  2221.    SSObjSetPos = 0
  2222.    Exit Function
  2223.  
  2224. SSObjSetPosError:
  2225.    SSObjSetPos = Err.Number
  2226.  
  2227. End Function
  2228.  
  2229. Public Function SSObjSetSelection%(SS As Object, ByVal ID&)
  2230.  
  2231.    On Error GoTo SSObjSetSelectionError
  2232.    SS.ObjSetSelection ID
  2233.    SSObjSetSelection = 0
  2234.    Exit Function
  2235.  
  2236. SSObjSetSelectionError:
  2237.    SSObjSetSelection = Err.Number
  2238.  
  2239. End Function
  2240.  
  2241. Public Function SSObjSetText%(SS As Object, ByVal ID&, ByVal pText$)
  2242.  
  2243.    On Error GoTo SSObjSetTextError
  2244.    SS.ObjSetText(ID) = pText
  2245.    SSObjSetText = 0
  2246.    Exit Function
  2247.  
  2248. SSObjSetTextError:
  2249.    SSObjSetText = Err.Number
  2250.  
  2251. End Function
  2252.  
  2253. Public Function SSObjSetValue%(SS As Object, ByVal ID&, ByVal nValue%)
  2254.  
  2255.    On Error GoTo SSObjSetValueError
  2256.    SS.ObjValue(ID) = nValue
  2257.    SSObjSetValue = 0
  2258.    Exit Function
  2259.  
  2260. SSObjSetValueError:
  2261.    SSObjSetValue = Err.Number
  2262.  
  2263. End Function
  2264.  
  2265. Public Function SSObjSetVisible%(SS As Object, ByVal ID&, ByVal bVisible%)
  2266.  
  2267.    On Error GoTo SSObjSetVisibleError
  2268.    SS.ObjVisible(ID) = bVisible
  2269.    SSObjSetVisible = 0
  2270.    Exit Function
  2271.  
  2272. SSObjSetVisibleError:
  2273.    SSObjSetVisible = Err.Number
  2274.  
  2275. End Function
  2276.  
  2277. Public Function SSOpenFileDlg%(ByVal pTitle$, ByVal hWndParent%, ByVal pBuf$, ByVal nBufSize%)
  2278.  
  2279.    On Error GoTo SSOpenFileDlgError
  2280.    SS.OpenFileDlg pTitle, hWndParent, pBuf
  2281.    SSOpenFileDlg = 0
  2282.    Exit Function
  2283.  
  2284. SSOpenFileDlgError:
  2285.    SSOpenFileDlg = Err.Number
  2286.  
  2287. End Function
  2288.  
  2289. Public Function SSProtectionDlg%(SS As Object)
  2290.  
  2291.    On Error GoTo SSProtectionDlgError
  2292.    SS.ProtectionDlg
  2293.    SSProtectionDlg = 0
  2294.    Exit Function
  2295.  
  2296. SSProtectionDlgError:
  2297.    SSProtectionDlg = Err.Number
  2298.  
  2299. End Function
  2300.  
  2301. Public Function SSRangeToTwips%(SS As Object, ByVal nRow1%, ByVal nCol1%, ByVal nRow2%, ByVal nCol2%, pX&, pY&, pCX&, pCY&, pShown%)
  2302.  
  2303.    On Error GoTo SSRangeToTwipsError
  2304.    SS.RangeToTwips nRow1, nCol1, nRow2, nCol2, pX, pY, pCX, pCY, pShown
  2305.    SSRangeToTwips = 0
  2306.    Exit Function
  2307.  
  2308. SSRangeToTwipsError:
  2309.    SSRangeToTwips = Err.Number
  2310.  
  2311. End Function
  2312.  
  2313. Public Function SSRead%(SS As Object, ByVal pPathName$, pFileType%)
  2314.  
  2315.    On Error GoTo SSReadError
  2316.    SS.Read pPathName, pFileType
  2317.    SSRead = 0
  2318.    Exit Function
  2319.  
  2320. SSReadError:
  2321.    SSRead = Err.Number
  2322.  
  2323. End Function
  2324.  
  2325. Public Function SSRecalc%(SS As Object)
  2326.  
  2327.    On Error GoTo SSRecalcError
  2328.    SS.Recalc
  2329.    SSRecalc = 0
  2330.    Exit Function
  2331.  
  2332. SSRecalcError:
  2333.    SSRecalc = Err.Number
  2334.  
  2335. End Function
  2336.  
  2337. Public Function SSRemoveColPageBreak%(SS As Object, ByVal nCol%)
  2338.  
  2339.    On Error GoTo SSRemoveColPageBreakError
  2340.    SS.RemoveColPageBreak (nCol)
  2341.    SSRemoveColPageBreak = 0
  2342.    Exit Function
  2343.  
  2344. SSRemoveColPageBreakError:
  2345.    SSRemoveColPageBreak = Err.Number
  2346.  
  2347. End Function
  2348.  
  2349. Public Function SSRemovePageBreak%(SS As Object)
  2350.  
  2351.    On Error GoTo SSRemovePageBreakError
  2352.    SS.RemovePageBreak
  2353.    SSRemovePageBreak = 0
  2354.    Exit Function
  2355.  
  2356. SSRemovePageBreakError:
  2357.    SSRemovePageBreak = Err.Number
  2358.  
  2359. End Function
  2360.  
  2361. Public Function SSRemoveRowPageBreak%(SS As Object, ByVal nRow%)
  2362.  
  2363.    On Error GoTo SSRemoveRowPageBreakError
  2364.    SS.RemoveRowPageBreak (nRow)
  2365.    SSRemoveRowPageBreak = 0
  2366.    Exit Function
  2367.  
  2368. SSRemoveRowPageBreakError:
  2369.    SSRemoveRowPageBreak = Err.Number
  2370.  
  2371. End Function
  2372.  
  2373. Public Function SSRowHeightDlg%(SS As Object)
  2374.  
  2375.    On Error GoTo SSRowHeightDlgError
  2376.    SS.RowHeightDlg
  2377.    SSRowHeightDlg = 0
  2378.    Exit Function
  2379.  
  2380. SSRowHeightDlgError:
  2381.    SSRowHeightDlg = Err.Number
  2382.  
  2383. End Function
  2384.  
  2385. Public Function SSSaveFileDlg%(SS As Object, ByVal pTitle$, ByVal pBuf$, ByVal nBufSize%, pFileType%)
  2386.  
  2387.    On Error GoTo SSSaveFileDlgError
  2388.    SS.SaveFileDlg pTitle, pBuf, pFileType
  2389.    SSSaveFileDlg = 0
  2390.    Exit Function
  2391.  
  2392. SSSaveFileDlgError:
  2393.    SSSaveFileDlg = Err.Number
  2394.  
  2395. End Function
  2396.  
  2397. Public Function SSSaveWindowInfo%(SS As Object)
  2398.  
  2399.    On Error GoTo SSSaveWindowInfoError
  2400.    SS.SaveWindowInfo
  2401.    SSSaveWindowInfo = 0
  2402.    Exit Function
  2403.  
  2404. SSSaveWindowInfoError:
  2405.    SSSaveWindowInfo = Err.Number
  2406.  
  2407. End Function
  2408.  
  2409. Public Function SSSetActiveCell%(SS As Object, ByVal nRow%, ByVal nCol%)
  2410.  
  2411.    On Error GoTo SSSetActiveCellError
  2412.    SS.SetActiveCell nRow, nCol
  2413.    SSSetActiveCell = 0
  2414.    Exit Function
  2415.  
  2416. SSSetActiveCellError:
  2417.    SSSetActiveCell = Err.Number
  2418.  
  2419. End Function
  2420.  
  2421. Public Function SSSetAlignment%(SS As Object, ByVal nHorizontal%, ByVal bWordWrap%, ByVal nVertical%, ByVal nOrientation%)
  2422.  
  2423.    On Error GoTo SSSetAlignmentError
  2424.    SS.SetAlignment nHorizontal, bWordWrap, nVertical, nOrientation
  2425.    SSSetAlignment = 0
  2426.    Exit Function
  2427.  
  2428. SSSetAlignmentError:
  2429.    SSSetAlignment = Err.Number
  2430.  
  2431. End Function
  2432.  
  2433. Public Function SSSetAllowArrows%(SS As Object, ByVal bAllowArrows%)
  2434.  
  2435.    On Error GoTo SSSetAllowArrowsError
  2436.    SS.AllowArrows = bAllowArrows
  2437.    SSSetAllowArrows = 0
  2438.    Exit Function
  2439.  
  2440. SSSetAllowArrowsError:
  2441.    SSSetAllowArrows = Err.Number
  2442.  
  2443. End Function
  2444.  
  2445. Public Function SSSetAllowDelete%(SS As Object, ByVal bAllowDelete%)
  2446.  
  2447.    On Error GoTo SSSetAllowDeleteError
  2448.    SS.AllowDelete = bAllowDelete
  2449.    SSSetAllowDelete = 0
  2450.    Exit Function
  2451.  
  2452. SSSetAllowDeleteError:
  2453.    SSSetAllowDelete = Err.Number
  2454.  
  2455. End Function
  2456.  
  2457. Public Function SSSetAllowEditHeaders%(SS As Object, ByVal bAllowEditHeaders%)
  2458.  
  2459.    On Error GoTo SSSetAllowEditHeadersError
  2460.    SS.AllowEditHeaders = bAllowEditHeaders
  2461.    SSSetAllowEditHeaders = 0
  2462.    Exit Function
  2463.  
  2464. SSSetAllowEditHeadersError:
  2465.    SSSetAllowEditHeaders = Err.Number
  2466.  
  2467. End Function
  2468.  
  2469. Public Function SSSetAllowFillRange%(SS As Object, ByVal bAllowFillRange%)
  2470.  
  2471.    On Error GoTo SSSetAllowFillRangeError
  2472.    SS.AllowFillRange = bAllowFillRange
  2473.    SSSetAllowFillRange = 0
  2474.    Exit Function
  2475.  
  2476. SSSetAllowFillRangeError:
  2477.    SSSetAllowFillRange = Err.Number
  2478.  
  2479. End Function
  2480.  
  2481. Public Function SSSetAllowInCellEditing%(SS As Object, ByVal bAllowInCellEditing%)
  2482.  
  2483.    On Error GoTo SSSetAllowInCellEditingError
  2484.    SS.AllowInCellEditing = bAllowInCellEditing
  2485.    SSSetAllowInCellEditing = 0
  2486.    Exit Function
  2487.  
  2488. SSSetAllowInCellEditingError:
  2489.    SSSetAllowInCellEditing = Err.Number
  2490.  
  2491. End Function
  2492.  
  2493. Public Function SSSetAllowMoveRange%(SS As Object, ByVal bAllowMoveRange%)
  2494.  
  2495.    On Error GoTo SSSetAllowMoveRangeError
  2496.    SS.AllowMoveRange = bAllowMoveRange
  2497.    SSSetAllowMoveRange = 0
  2498.    Exit Function
  2499.  
  2500. SSSetAllowMoveRangeError:
  2501.    SSSetAllowMoveRange = Err.Number
  2502.  
  2503. End Function
  2504.  
  2505. Public Function SSSetAllowObjSelections%(SS As Object, ByVal bAllowObjSelections%)
  2506.  
  2507.    On Error GoTo SSSetAllowObjSelectionsError
  2508.    SS.AllowObjSelections = bAllowObjSelections
  2509.    SSSetAllowObjSelections = 0
  2510.    Exit Function
  2511.  
  2512. SSSetAllowObjSelectionsError:
  2513.    SSSetAllowObjSelections = Err.Number
  2514.  
  2515. End Function
  2516.  
  2517. Public Function SSSetAllowResize%(SS As Object, ByVal bAllowResize%)
  2518.  
  2519.    On Error GoTo SSSetAllowResizeError
  2520.    SS.AllowResize = bAllowResize
  2521.    SSSetAllowResize = 0
  2522.    Exit Function
  2523.  
  2524. SSSetAllowResizeError:
  2525.    SSSetAllowResize = Err.Number
  2526.  
  2527. End Function
  2528.  
  2529. Public Function SSSetAllowSelections%(SS As Object, ByVal bAllowSelections%)
  2530.  
  2531.    On Error GoTo SSSetAllowSelectionsError
  2532.    SS.AllowSelections = bAllowSelections
  2533.    SSSetAllowSelections = 0
  2534.    Exit Function
  2535.  
  2536. SSSetAllowSelectionsError:
  2537.    SSSetAllowSelections = Err.Number
  2538.  
  2539. End Function
  2540.  
  2541. Public Function SSSetAllowTabs%(SS As Object, ByVal bAllowTabs%)
  2542.  
  2543.    On Error GoTo SSSetAllowTabsError
  2544.    SS.AllowTabs = bAllowTabs
  2545.    SSSetAllowTabs = 0
  2546.    Exit Function
  2547.  
  2548. SSSetAllowTabsError:
  2549.    SSSetAllowTabs = Err.Number
  2550.  
  2551. End Function
  2552.  
  2553. Public Function SSSetAllowFormulas%(SS As Object, ByVal bAllowFormulas%)
  2554.  
  2555.    On Error GoTo SSSetAllowFormulasError
  2556.    SS.AllowFormulas = bAllowFormulas
  2557.    SSSetAllowFormulas = 0
  2558.    Exit Function
  2559.  
  2560. SSSetAllowFormulasError:
  2561.    SSSetAllowFormulas = Err.Number
  2562.  
  2563. End Function
  2564.  
  2565. Public Function SSSetAutoRecalc%(SS As Object, ByVal bAutoRecalc%)
  2566.  
  2567.    On Error GoTo SSSetAutoRecalcError
  2568.    SS.AutoRecalc = bAutoRecalc
  2569.    SSSetAutoRecalc = 0
  2570.    Exit Function
  2571.  
  2572. SSSetAutoRecalcError:
  2573.    SSSetAutoRecalc = Err.Number
  2574.  
  2575. End Function
  2576.  
  2577. Public Function SSSetAppName%(SS As Object, ByVal pAppName$)
  2578.  
  2579.    On Error GoTo SSSetAppNameError
  2580.    SS.AppName = pAppName
  2581.    SSSetAppName = 0
  2582.    Exit Function
  2583.  
  2584. SSSetAppNameError:
  2585.    SSSetAppName = Err.Number
  2586.  
  2587. End Function
  2588.  
  2589. Public Function SSSetBackColor%(SS As Object, ByVal crBackColor&)
  2590.  
  2591.    On Error GoTo SSSetBackColorError
  2592.    SS.BackColor = crBackColor
  2593.    SSSetBackColor = 0
  2594.    Exit Function
  2595.  
  2596. SSSetBackColorError:
  2597.    SSSetBackColor = Err.Number
  2598.  
  2599. End Function
  2600.  
  2601. Public Function SSSetBorder%(SS As Object, ByVal nOutline%, ByVal nLeft%, ByVal nRight%, ByVal nTop%, ByVal nBottom%, ByVal nShade%, ByVal crOutline&, ByVal crLeft&, ByVal crRight&, ByVal crTop&, ByVal crBottom&)
  2602.  
  2603.    On Error GoTo SSSetBorderError
  2604.    SS.SetBorder nOutline, nLeft, nRight, nTop, nBottom, nShade, crOutline, crLeft, crRight, crTop, crBottom
  2605.    SSSetBorder = 0
  2606.    Exit Function
  2607.  
  2608. SSSetBorderError:
  2609.    SSSetBorder = Err.Number
  2610.  
  2611. End Function
  2612.  
  2613. Public Function SSSetColText%(SS As Object, ByVal nCol%, ByVal pColText$)
  2614.  
  2615.    On Error GoTo SSSetColTextError
  2616.    SS.ColText(nCol) = pColText
  2617.    SSSetColText = 0
  2618.    Exit Function
  2619.  
  2620. SSSetColTextError:
  2621.    SSSetColText = Err.Number
  2622.  
  2623. End Function
  2624.  
  2625. Public Function SSSetColWidth%(SS As Object, ByVal nC1%, ByVal nC2%, ByVal nWidth%, ByVal bDefColWidth%)
  2626.  
  2627.    On Error GoTo SSSetColWidthError
  2628.    SS.SetColWidth nC1, nC2, nWidth, bDefColWidth
  2629.    SSSetColWidth = 0
  2630.    Exit Function
  2631.  
  2632. SSSetColWidthError:
  2633.    SSSetColWidth = Err.Number
  2634.  
  2635. End Function
  2636.  
  2637. Public Function SSSetColWidthAuto%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%, ByVal bSetDefaults%)
  2638.  
  2639.    On Error GoTo SSSetColWidthAutoError
  2640.    SS.SetColWidthAuto nR1, nC1, nR2, nC2, bSetDefaults
  2641.    SSSetColWidthAuto = 0
  2642.    Exit Function
  2643.  
  2644. SSSetColWidthAutoError:
  2645.    SSSetColWidthAuto = Err.Number
  2646.  
  2647. End Function
  2648.  
  2649. Public Function SSSetDefaultFont%(SS As Object, ByVal pName$, ByVal nSize%)
  2650.  
  2651.    On Error GoTo SSSetDefaultFontError
  2652.    SS.SetDefaultFont pName, nSize
  2653.    SSSetDefaultFont = 0
  2654.    Exit Function
  2655.  
  2656. SSSetDefaultFontError:
  2657.    SSSetDefaultFont = Err.Number
  2658.  
  2659. End Function
  2660.  
  2661. Public Function SSSetDefinedName%(SS As Object, ByVal pName$, ByVal pFormula$)
  2662.  
  2663.    On Error GoTo SSSetDefinedNameError
  2664.    SS.SetDefinedName(pName) = pFormula
  2665.    SSSetDefinedName = 0
  2666.    Exit Function
  2667.  
  2668. SSSetDefinedNameError:
  2669.    SSSetDefinedName = Err.Number
  2670.  
  2671. End Function
  2672.  
  2673. Public Function SSSetEnableProtection%(SS As Object, ByVal bEnableProtection%)
  2674.  
  2675.    On Error GoTo SSSetEnableProtectionError
  2676.    SS.EnableProtection = bEnableProtection
  2677.    SSSetEnableProtection = 0
  2678.    Exit Function
  2679.  
  2680. SSSetEnableProtectionError:
  2681.    SSSetEnableProtection = Err.Number
  2682.  
  2683. End Function
  2684.  
  2685. Public Function SSSetEnterMovesDown%(SS As Object, ByVal bEnterMovesDown%)
  2686.  
  2687.    On Error GoTo SSSetEnterMovesDownError
  2688.    SS.EnterMovesDown = bEnterMovesDown
  2689.    SSSetEnterMovesDown = 0
  2690.    Exit Function
  2691.  
  2692. SSSetEnterMovesDownError:
  2693.    SSSetEnterMovesDown = Err.Number
  2694.  
  2695. End Function
  2696.  
  2697. Public Function SSSetEntry%(SS As Object, ByVal pEntry$)
  2698.  
  2699.    On Error GoTo SSSetEntryError
  2700.    SS.Entry = pEntry
  2701.    SSSetEntry = 0
  2702.    Exit Function
  2703.  
  2704. SSSetEntryError:
  2705.    SSSetEntry = Err.Number
  2706.  
  2707. End Function
  2708.  
  2709. Public Function SSSetEntryRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal pEntry$)
  2710.  
  2711.    On Error GoTo SSSetEntryRCError
  2712.    SS.EntryRC(nRow, nCol) = pEntry
  2713.    SSSetEntryRC = 0
  2714.    Exit Function
  2715.  
  2716. SSSetEntryRCError:
  2717.    SSSetEntryRC = Err.Number
  2718.  
  2719. End Function
  2720.  
  2721. Public Function SSSetExtraColor%(SS As Object, ByVal crExtraColor&)
  2722.  
  2723.    On Error GoTo SSSetExtraColorError
  2724.    SS.ExtraColor = crExtraColor
  2725.    SSSetExtraColor = 0
  2726.    Exit Function
  2727.  
  2728. SSSetExtraColorError:
  2729.    SSSetExtraColor = Err.Number
  2730.  
  2731. End Function
  2732.  
  2733. Public Function SSSetFixedCols%(SS As Object, ByVal nC1%, ByVal nCols%)
  2734.  
  2735.    On Error GoTo SSSetFixedColsError
  2736.    SS.FixedCol = nC1
  2737.    SS.FixedCols = nCols
  2738.    SSSetFixedCols = 0
  2739.    Exit Function
  2740.  
  2741. SSSetFixedColsError:
  2742.    SSSetFixedCols = Err.Number
  2743.  
  2744. End Function
  2745.  
  2746. Public Function SSSetFixedRows%(SS As Object, ByVal nR1%, ByVal nRows%)
  2747.  
  2748.    On Error GoTo SSSetFixedRowsError
  2749.    SS.FixedRow = nR1
  2750.    SS.FixedRows = nRows
  2751.    SSSetFixedRows = 0
  2752.    Exit Function
  2753.  
  2754. SSSetFixedRowsError:
  2755.    SSSetFixedRows = Err.Number
  2756.  
  2757. End Function
  2758.  
  2759. Public Function SSSetFont%(SS As Object, ByVal pName$, ByVal nSize%, ByVal bBold%, ByVal bItalic%, ByVal bUnderline%, ByVal bStrikeout%, ByVal crColor&, ByVal bOutline%, ByVal bShadow%)
  2760.  
  2761.    On Error GoTo SSSetFontError
  2762.    SS.SetFont pName, nSize, bBold, bItalic, bUnderline, bStrikeout, crColor, bOutline, bShadow
  2763.    SSSetFont = 0
  2764.    Exit Function
  2765.  
  2766. SSSetFontError:
  2767.    SSSetFont = Err.Number
  2768.  
  2769. End Function
  2770.  
  2771. Public Function SSSetFormula%(SS As Object, ByVal pFormula$)
  2772.  
  2773.    On Error GoTo SSSetFormulaError
  2774.    SS.Formula = pFormula
  2775.    SSSetFormula = 0
  2776.    Exit Function
  2777.  
  2778. SSSetFormulaError:
  2779.    SSSetFormula = Err.Number
  2780.  
  2781. End Function
  2782.  
  2783. Public Function SSSetFormulaRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal pFormula$)
  2784.  
  2785.    On Error GoTo SSSetFormulaRCError
  2786.    SS.FormulaRC(nRow, nCol) = pFormula
  2787.    SSSetFormulaRC = 0
  2788.    Exit Function
  2789.  
  2790. SSSetFormulaRCError:
  2791.    SSSetFormulaRC = Err.Number
  2792.  
  2793. End Function
  2794.  
  2795. Public Function SSSetHdrHeight%(SS As Object, ByVal nHeight%)
  2796.  
  2797.    On Error GoTo SSSetHdrHeightError
  2798.    SS.HdrHeight = nHeight
  2799.    SSSetHdrHeight = 0
  2800.    Exit Function
  2801.  
  2802. SSSetHdrHeightError:
  2803.    SSSetHdrHeight = Err.Number
  2804.  
  2805. End Function
  2806.  
  2807. Public Function SSSetHdrSelection%(SS As Object, ByVal bTopLeftHdr%, ByVal bRowHdr%, ByVal bColHdr%)
  2808.  
  2809.    On Error GoTo SSSetHdrSelectionError
  2810.    SS.SetHdrSelection bTopLeftHdr, bRowHdr, bColHdr
  2811.    SSSetHdrSelection = 0
  2812.    Exit Function
  2813.  
  2814. SSSetHdrSelectionError:
  2815.    SSSetHdrSelection = Err.Number
  2816.  
  2817. End Function
  2818.  
  2819. Public Function SSSetHdrWidth%(SS As Object, ByVal nWidth%)
  2820.  
  2821.    On Error GoTo SSSetHdrWidthError
  2822.    SS.HdrWidth = nWidth
  2823.    SSSetHdrWidth = 0
  2824.    Exit Function
  2825.  
  2826. SSSetHdrWidthError:
  2827.    SSSetHdrWidth = Err.Number
  2828.  
  2829. End Function
  2830.  
  2831. Public Function SSSetIteration%(SS As Object, ByVal bIteration%, ByVal nMaxIterations%, ByVal nMaxChange#)
  2832.  
  2833.    On Error GoTo SSSetIterationError
  2834.    SS.SetIteration bIteration, nMaxIterations, nMaxChange
  2835.    SSSetIteration = 0
  2836.    Exit Function
  2837.  
  2838. SSSetIterationError:
  2839.    SSSetIteration = Err.Number
  2840.  
  2841. End Function
  2842.  
  2843. Public Function SSSetLeftCol%(SS As Object, ByVal nLeftCol%)
  2844.  
  2845.    On Error GoTo SSSetLeftColError
  2846.    SS.LeftCol = nLeftCol
  2847.    SSSetLeftCol = 0
  2848.    Exit Function
  2849.  
  2850. SSSetLeftColError:
  2851.    SSSetLeftCol = Err.Number
  2852.  
  2853. End Function
  2854.  
  2855. Public Function SSSetLineStyle%(SS As Object, ByVal nStyle%, ByVal crColor&, ByVal nWeight%)
  2856.  
  2857.    On Error GoTo SSSetLineStyleError
  2858.    SS.SetLineStyle nStyle, crColor, nWeight
  2859.    SSSetLineStyle = 0
  2860.    Exit Function
  2861.  
  2862. SSSetLineStyleError:
  2863.    SSSetLineStyle = Err.Number
  2864.  
  2865. End Function
  2866.  
  2867. Public Function SSSetLogicalRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal bIsTrue%)
  2868.  
  2869.    On Error GoTo SSSetLogicalRCError
  2870.    SS.LogicalRC(nRow, nCol) = bIsTrue
  2871.    SSSetLogicalRC = 0
  2872.    Exit Function
  2873.  
  2874. SSSetLogicalRCError:
  2875.    SSSetLogicalRC = Err.Number
  2876.  
  2877. End Function
  2878.  
  2879. Public Function SSSetMinCol%(SS As Object, ByVal nMinCol%)
  2880.  
  2881.    On Error GoTo SSSetMinColError
  2882.    SS.MinCol = nMinCol
  2883.    SSSetMinCol = 0
  2884.    Exit Function
  2885.  
  2886. SSSetMinColError:
  2887.    SSSetMinCol = Err.Number
  2888.  
  2889. End Function
  2890.  
  2891. Public Function SSSetMinRow%(SS As Object, ByVal nMinRow%)
  2892.  
  2893.    On Error GoTo SSSetMinRowError
  2894.    SS.MinRow = nMinRow
  2895.    SSSetMinRow = 0
  2896.    Exit Function
  2897.  
  2898. SSSetMinRowError:
  2899.    SSSetMinRow = Err.Number
  2900.  
  2901. End Function
  2902.  
  2903. Public Function SSSetMaxCol%(SS As Object, ByVal nMaxCol%)
  2904.  
  2905.    On Error GoTo SSSetMaxColError
  2906.    SS.MaxCol = nMaxCol
  2907.    SSSetMaxCol = 0
  2908.    Exit Function
  2909.  
  2910. SSSetMaxColError:
  2911.    SSSetMaxCol = Err.Number
  2912.  
  2913. End Function
  2914.  
  2915. Public Function SSSetMaxRow%(SS As Object, ByVal nMaxRow%)
  2916.  
  2917.    On Error GoTo SSSetMaxRowError
  2918.    SS.MaxRow = nMaxRow
  2919.    SSSetMaxRow = 0
  2920.    Exit Function
  2921.  
  2922. SSSetMaxRowError:
  2923.    SSSetMaxRow = Err.Number
  2924.  
  2925. End Function
  2926.  
  2927. Public Function SSSetMode%(SS As Object, ByVal nMode%)
  2928.  
  2929.    On Error GoTo SSSetModeError
  2930.    SS.Mode = nMode
  2931.    SSSetMode = 0
  2932.    Exit Function
  2933.  
  2934. SSSetModeError:
  2935.    SSSetMode = Err.Number
  2936.  
  2937. End Function
  2938.  
  2939. Public Function SSSetNumber%(SS As Object, ByVal nNumber#)
  2940.  
  2941.    On Error GoTo SSSetNumberError
  2942.    SS.Number = nNumber
  2943.    SSSetNumber = 0
  2944.    Exit Function
  2945.  
  2946. SSSetNumberError:
  2947.    SSSetNumber = Err.Number
  2948.  
  2949. End Function
  2950.  
  2951. Public Function SSSetNumberFormat%(SS As Object, ByVal pNumberFormat$)
  2952.  
  2953.    On Error GoTo SSSetNumberFormatError
  2954.    SS.NumberFormat = pNumberFormat
  2955.    SSSetNumberFormat = 0
  2956.    Exit Function
  2957.  
  2958. SSSetNumberFormatError:
  2959.    SSSetNumberFormat = Err.Number
  2960.  
  2961. End Function
  2962.  
  2963. Public Function SSSetNumberRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal nNumber#)
  2964.  
  2965.    On Error GoTo SSSetNumberRCError
  2966.    SS.NumberRC(nRow, nCol) = nNumber
  2967.    SSSetNumberRC = 0
  2968.    Exit Function
  2969.  
  2970. SSSetNumberRCError:
  2971.    SSSetNumberRC = Err.Number
  2972.  
  2973. End Function
  2974.  
  2975. Public Function SSSetPattern%(SS As Object, ByVal nPattern%, ByVal crFG&, ByVal crBG&)
  2976.  
  2977.    On Error GoTo SSSetPatternError
  2978.    SS.SetPattern nPattern, crFG, crBG
  2979.    SSSetPattern = 0
  2980.    Exit Function
  2981.  
  2982. SSSetPatternError:
  2983.    SSSetPattern = Err.Number
  2984.  
  2985. End Function
  2986.  
  2987. Public Function SSSetPolyEditMode%(SS As Object, ByVal nPolyEditMode%)
  2988.  
  2989.    On Error GoTo SSSetPolyEditModeError
  2990.    SS.PolyEditMode = nPolyEditMode
  2991.    SSSetPolyEditMode = 0
  2992.    Exit Function
  2993.  
  2994. SSSetPolyEditModeError:
  2995.    SSSetPolyEditMode = Err.Number
  2996.  
  2997. End Function
  2998.  
  2999. Public Function SSSetPrintArea%(SS As Object, ByVal pFormula$)
  3000.  
  3001.    On Error GoTo SSSetPrintAreaError
  3002.    SS.PrintArea = pFormula
  3003.    SSSetPrintArea = 0
  3004.    Exit Function
  3005.  
  3006. SSSetPrintAreaError:
  3007.    SSSetPrintArea = Err.Number
  3008.  
  3009. End Function
  3010.  
  3011. Public Function SSSetPrintAreaFromSelection%(SS As Object)
  3012.  
  3013.    On Error GoTo SSSetPrintAreaFromSelectionError
  3014.    SS.SetPrintAreaFromSelection
  3015.    SSSetPrintAreaFromSelection = 0
  3016.    Exit Function
  3017.  
  3018. SSSetPrintAreaFromSelectionError:
  3019.    SSSetPrintAreaFromSelection = Err.Number
  3020.  
  3021. End Function
  3022.  
  3023. Public Function SSSetPrintBottomMargin%(SS As Object, ByVal nMargin#)
  3024.  
  3025.    On Error GoTo SSSetPrintBottomMarginError
  3026.    SS.PrintBottomMargin = nMargin
  3027.    SSSetPrintBottomMargin = 0
  3028.    Exit Function
  3029.  
  3030. SSSetPrintBottomMarginError:
  3031.    SSSetPrintBottomMargin = Err.Number
  3032.  
  3033. End Function
  3034.  
  3035. Public Function SSSetPrintColHeading%(SS As Object, ByVal bColHeading%)
  3036.  
  3037.    On Error GoTo SSSetPrintColHeadingError
  3038.    SS.PrintColHeading = bColHeading
  3039.    SSSetPrintColHeading = 0
  3040.    Exit Function
  3041.  
  3042. SSSetPrintColHeadingError:
  3043.    SSSetPrintColHeading = Err.Number
  3044.  
  3045. End Function
  3046.  
  3047. Public Function SSSetPrintFooter%(SS As Object, ByVal pPrintFooter$)
  3048.  
  3049.    On Error GoTo SSSetPrintFooterError
  3050.    SS.PrintFooter = pPrintFooter
  3051.    SSSetPrintFooter = 0
  3052.    Exit Function
  3053.  
  3054. SSSetPrintFooterError:
  3055.    SSSetPrintFooter = Err.Number
  3056.  
  3057. End Function
  3058.  
  3059. Public Function SSSetPrintGridLines%(SS As Object, ByVal bGridLines%)
  3060.  
  3061.    On Error GoTo SSSetPrintGridLinesError
  3062.    SS.PrintGridLines = bGridLines
  3063.    SSSetPrintGridLines = 0
  3064.    Exit Function
  3065.  
  3066. SSSetPrintGridLinesError:
  3067.    SSSetPrintGridLines = Err.Number
  3068.  
  3069. End Function
  3070.  
  3071. Public Function SSSetPrintHCenter%(SS As Object, ByVal bHCenter%)
  3072.  
  3073.    On Error GoTo SSSetPrintHCenterError
  3074.    SS.PrintHCenter = bHCenter
  3075.    SSSetPrintHCenter = 0
  3076.    Exit Function
  3077.  
  3078. SSSetPrintHCenterError:
  3079.    SSSetPrintHCenter = Err.Number
  3080.  
  3081. End Function
  3082.  
  3083. Public Function SSSetPrintHeader%(SS As Object, ByVal pPrintHeader$)
  3084.  
  3085.    On Error GoTo SSSetPrintHeaderError
  3086.    SS.PrintHeader = pPrintHeader
  3087.    SSSetPrintHeader = 0
  3088.    Exit Function
  3089.  
  3090. SSSetPrintHeaderError:
  3091.    SSSetPrintHeader = Err.Number
  3092.  
  3093. End Function
  3094.  
  3095. Public Function SSSetPrintLandscape%(SS As Object, ByVal bLandscape%)
  3096.  
  3097.    On Error GoTo SSSetPrintLandscapeError
  3098.    SS.PrintLandscape = bLandscape
  3099.    SSSetPrintLandscape = 0
  3100.    Exit Function
  3101.  
  3102. SSSetPrintLandscapeError:
  3103.    SSSetPrintLandscape = Err.Number
  3104.  
  3105. End Function
  3106.  
  3107. Public Function SSSetPrintLeftMargin%(SS As Object, ByVal nMargin#)
  3108.  
  3109.    On Error GoTo SSSetPrintLeftMarginError
  3110.    SS.PrintLeftMargin = nMargin
  3111.    SSSetPrintLeftMargin = 0
  3112.    Exit Function
  3113.  
  3114. SSSetPrintLeftMarginError:
  3115.    SSSetPrintLeftMargin = Err.Number
  3116.  
  3117. End Function
  3118.  
  3119. Public Function SSSetPrintLeftToRight%(SS As Object, ByVal bLeftToRight%)
  3120.  
  3121.    On Error GoTo SSSetPrintLeftToRightError
  3122.    SS.PrintLeftToRight = bLeftToRight
  3123.    SSSetPrintLeftToRight = 0
  3124.    Exit Function
  3125.  
  3126. SSSetPrintLeftToRightError:
  3127.    SSSetPrintLeftToRight = Err.Number
  3128.  
  3129. End Function
  3130.  
  3131. Public Function SSSetPrintNoColor%(SS As Object, ByVal bNoColor%)
  3132.  
  3133.    On Error GoTo SSSetPrintNoColorError
  3134.    SS.PrintNoColor = bNoColor
  3135.    SSSetPrintNoColor = 0
  3136.    Exit Function
  3137.  
  3138. SSSetPrintNoColorError:
  3139.    SSSetPrintNoColor = Err.Number
  3140.  
  3141. End Function
  3142.  
  3143. Public Function SSSetPrintRightMargin%(SS As Object, ByVal nMargin#)
  3144.  
  3145.    On Error GoTo SSSetPrintRightMarginError
  3146.    SS.PrintRightMargin = nMargin
  3147.    SSSetPrintRightMargin = 0
  3148.    Exit Function
  3149.  
  3150. SSSetPrintRightMarginError:
  3151.    SSSetPrintRightMargin = Err.Number
  3152.  
  3153. End Function
  3154.  
  3155. Public Function SSSetPrintRowHeading%(SS As Object, ByVal bRowHeading%)
  3156.  
  3157.    On Error GoTo SSSetPrintRowHeadingError
  3158.    SS.PrintRowHeading = bRowHeading
  3159.    SSSetPrintRowHeading = 0
  3160.    Exit Function
  3161.  
  3162. SSSetPrintRowHeadingError:
  3163.    SSSetPrintRowHeading = Err.Number
  3164.  
  3165. End Function
  3166.  
  3167. Public Function SSSetPrintScale%(SS As Object, ByVal nScale%, ByVal bFitToPage%, ByVal nVPages%, ByVal nHPages%)
  3168.  
  3169.    On Error GoTo SSSetPrintScaleError
  3170.    SS.SetPrintScale nScale, bFitToPage, nVPages, nHPages
  3171.    SSSetPrintScale = 0
  3172.    Exit Function
  3173.  
  3174. SSSetPrintScaleError:
  3175.    SSSetPrintScale = Err.Number
  3176.  
  3177. End Function
  3178.  
  3179. Public Function SSSetPrintTitles%(SS As Object, ByVal pFormula$)
  3180.  
  3181.    On Error GoTo SSSetPrintTitlesError
  3182.    SS.PrintTitles = pFormula
  3183.    SSSetPrintTitles = 0
  3184.    Exit Function
  3185.  
  3186. SSSetPrintTitlesError:
  3187.    SSSetPrintTitles = Err.Number
  3188.  
  3189. End Function
  3190.  
  3191. Public Function SSSetPrintTitlesFromSelection%(SS As Object)
  3192.  
  3193.    On Error GoTo SSSetPrintTitlesFromSelectionError
  3194.    SS.SetPrintTitlesFromSelection
  3195.    SSSetPrintTitlesFromSelection = 0
  3196.    Exit Function
  3197.  
  3198. SSSetPrintTitlesFromSelectionError:
  3199.    SSSetPrintTitlesFromSelection = Err.Number
  3200.  
  3201. End Function
  3202.  
  3203. Public Function SSSetPrintTopMargin%(SS As Object, ByVal nMargin#)
  3204.  
  3205.    On Error GoTo SSSetPrintTopMarginError
  3206.    SS.PrintTopMargin = nMargin
  3207.    SSSetPrintTopMargin = 0
  3208.    Exit Function
  3209.  
  3210. SSSetPrintTopMarginError:
  3211.    SSSetPrintTopMargin = Err.Number
  3212.  
  3213. End Function
  3214.  
  3215. Public Function SSSetPrintVCenter%(SS As Object, ByVal bVCenter%)
  3216.  
  3217.    On Error GoTo SSSetPrintVCenterError
  3218.    SS.PrintVCenter = bVCenter
  3219.    SSSetPrintVCenter = 0
  3220.    Exit Function
  3221.  
  3222. SSSetPrintVCenterError:
  3223.    SSSetPrintVCenter = Err.Number
  3224.  
  3225. End Function
  3226.  
  3227. Public Function SSSetProtection%(SS As Object, ByVal bLocked%, ByVal bHidden%)
  3228.  
  3229.    On Error GoTo SSSetProtectionError
  3230.    SS.SetProtection bLocked, bHidden
  3231.    SSSetProtection = 0
  3232.    Exit Function
  3233.  
  3234. SSSetProtectionError:
  3235.    SSSetProtection = Err.Number
  3236.  
  3237. End Function
  3238.  
  3239. Public Function SSSetRepaint%(SS As Object, ByVal bRepaint%)
  3240.  
  3241.    On Error GoTo SSSetRepaintError
  3242.    SS.Repaint = bRepaint
  3243.    SSSetRepaint = 0
  3244.    Exit Function
  3245.  
  3246. SSSetRepaintError:
  3247.    SSSetRepaint = Err.Number
  3248.  
  3249. End Function
  3250.  
  3251. Public Function SSSetRowHeight%(SS As Object, ByVal nR1%, ByVal nR2%, ByVal nHeight%, ByVal bDefRowHeight%)
  3252.  
  3253.    On Error GoTo SSSetRowHeightError
  3254.    SS.SetRowHeight nR1, nR2, nHeight, bDefRowHeight
  3255.    SSSetRowHeight = 0
  3256.    Exit Function
  3257.  
  3258. SSSetRowHeightError:
  3259.    SSSetRowHeight = Err.Number
  3260.  
  3261. End Function
  3262.  
  3263. Public Function SSSetRowHeightAuto%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%, ByVal bSetDefaults%)
  3264.  
  3265.    On Error GoTo SSSetRowHeightAutoError
  3266.    SS.SetRowHeightAuto nR1, nC1, nR2, nC2, bSetDefaults
  3267.    SSSetRowHeightAuto = 0
  3268.    Exit Function
  3269.  
  3270. SSSetRowHeightAutoError:
  3271.    SSSetRowHeightAuto = Err.Number
  3272.  
  3273. End Function
  3274.  
  3275. Public Function SSSetRowMode%(SS As Object, ByVal bRowMode%)
  3276.  
  3277.    On Error GoTo SSSetRowModeError
  3278.    SS.RowMode = bRowMode
  3279.    SSSetRowMode = 0
  3280.    Exit Function
  3281.  
  3282. SSSetRowModeError:
  3283.    SSSetRowMode = Err.Number
  3284.  
  3285. End Function
  3286.  
  3287. Public Function SSSetRowText%(SS As Object, ByVal nRow%, ByVal pRowText$)
  3288.  
  3289.    On Error GoTo SSSetRowTextError
  3290.    SS.RowText(nRow) = pRowText
  3291.    SSSetRowText = 0
  3292.    Exit Function
  3293.  
  3294. SSSetRowTextError:
  3295.    SSSetRowText = Err.Number
  3296.  
  3297. End Function
  3298.  
  3299. Public Function SSSetScale%(SS As Object, ByVal nScale%)
  3300.  
  3301.    On Error GoTo SSSetScaleError
  3302.    SS.Scale = nScale
  3303.    SSSetScale = 0
  3304.    Exit Function
  3305.  
  3306. SSSetScaleError:
  3307.    SSSetScale = Err.Number
  3308.  
  3309. End Function
  3310.  
  3311. Public Function SSSetSelection%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%)
  3312.  
  3313.    On Error GoTo SSSetSelectionError
  3314.    SS.SetSelection nR1, nC1, nR2, nC2
  3315.    SSSetSelection = 0
  3316.    Exit Function
  3317.  
  3318. SSSetSelectionError:
  3319.    SSSetSelection = Err.Number
  3320.  
  3321. End Function
  3322.  
  3323. Public Function SSSetSelectionRef%(SS As Object, ByVal pFormula$)
  3324.  
  3325.    On Error GoTo SSSetSelectionRefError
  3326.    SS.SelectionRef = pFormula
  3327.    SSSetSelectionRef = 0
  3328.    Exit Function
  3329.  
  3330. SSSetSelectionRefError:
  3331.    SSSetSelectionRef = Err.Number
  3332.  
  3333. End Function
  3334.  
  3335. Public Function SSSetShowColHeading%(SS As Object, ByVal bColHeading%)
  3336.  
  3337.    On Error GoTo SSSetShowColHeadingError
  3338.    SS.ShowColHeading = bColHeading
  3339.    SSSetShowColHeading = 0
  3340.    Exit Function
  3341.  
  3342. SSSetShowColHeadingError:
  3343.    SSSetShowColHeading = Err.Number
  3344.  
  3345. End Function
  3346.  
  3347. Public Function SSSetShowFormulas%(SS As Object, ByVal bFormulas%)
  3348.  
  3349.    On Error GoTo SSSetShowFormulasError
  3350.    SS.ShowFormulas = bFormulas
  3351.    SSSetShowFormulas = 0
  3352.    Exit Function
  3353.  
  3354. SSSetShowFormulasError:
  3355.    SSSetShowFormulas = Err.Number
  3356.  
  3357. End Function
  3358.  
  3359. Public Function SSSetShowGridLines%(SS As Object, ByVal bGridLines%)
  3360.  
  3361.    On Error GoTo SSSetShowGridLinesError
  3362.    SS.ShowGridLines = bGridLines
  3363.    SSSetShowGridLines = 0
  3364.    Exit Function
  3365.  
  3366. SSSetShowGridLinesError:
  3367.    SSSetShowGridLines = Err.Number
  3368.  
  3369. End Function
  3370.  
  3371. Public Function SSSetShowHScrollBar%(SS As Object, ByVal nShowHScrollBar%)
  3372.  
  3373.    On Error GoTo SSSetShowHScrollBarError
  3374.    SS.ShowHScrollBar = nShowHScrollBar
  3375.    SSSetShowHScrollBar = 0
  3376.    Exit Function
  3377.  
  3378. SSSetShowHScrollBarError:
  3379.    SSSetShowHScrollBar = Err.Number
  3380.  
  3381. End Function
  3382.  
  3383. Public Function SSSetShowRowHeading%(SS As Object, ByVal bRowHeading%)
  3384.  
  3385.    On Error GoTo SSSetShowRowHeadingError
  3386.    SS.ShowRowHeading = bRowHeading
  3387.    SSSetShowRowHeading = 0
  3388.    Exit Function
  3389.  
  3390. SSSetShowRowHeadingError:
  3391.    SSSetShowRowHeading = Err.Number
  3392.  
  3393. End Function
  3394.  
  3395. Public Function SSSetShowSelections%(SS As Object, ByVal nSelections%)
  3396.  
  3397.    On Error GoTo SSSetShowSelectionsError
  3398.    SS.ShowSelections = nSelections
  3399.    SSSetShowSelections = 0
  3400.    Exit Function
  3401.  
  3402. SSSetShowSelectionsError:
  3403.    SSSetShowSelections = Err.Number
  3404.  
  3405. End Function
  3406.  
  3407. Public Function SSSetShowVScrollBar%(SS As Object, ByVal nShowVScrollBar%)
  3408.  
  3409.    On Error GoTo SSSetShowVScrollBarError
  3410.    SS.ShowVScrollBar = nShowVScrollBar
  3411.    SSSetShowVScrollBar = 0
  3412.    Exit Function
  3413.  
  3414. SSSetShowVScrollBarError:
  3415.    SSSetShowVScrollBar = Err.Number
  3416.  
  3417. End Function
  3418.  
  3419. Public Function SSSetShowZeroValues%(SS As Object, ByVal bZeroValues%)
  3420.  
  3421.    On Error GoTo SSSetShowZeroValuesError
  3422.    SS.ShowZeroValues = bZeroValues
  3423.    SSSetShowZeroValues = 0
  3424.    Exit Function
  3425.  
  3426. SSSetShowZeroValuesError:
  3427.    SSSetShowZeroValues = Err.Number
  3428.  
  3429. End Function
  3430.  
  3431. Public Function SSSetTabbedText%(SS As Object, ByVal nStartRow%, ByVal nStartCol%, pRows%, pCols%, ByVal bValuesOnly%, ByVal pText$)
  3432.  
  3433.    On Error GoTo SSSetTabbedTextError
  3434.    SS.SetTabbedText nStartRow, nStartCol, pRows, pCols, bValuesOnly, pText
  3435.    SSSetTabbedText = 0
  3436.    Exit Function
  3437.  
  3438. SSSetTabbedTextError:
  3439.    SSSetTabbedText = Err.Number
  3440.  
  3441. End Function
  3442.  
  3443. Public Function SSSetText%(SS As Object, ByVal pText$)
  3444.  
  3445.    On Error GoTo SSSetTextError
  3446.    SS.TEXT = pText
  3447.    SSSetText = 0
  3448.    Exit Function
  3449.  
  3450. SSSetTextError:
  3451.    SSSetText = Err.Number
  3452.  
  3453. End Function
  3454.  
  3455. Public Function SSSetTextRC%(SS As Object, ByVal nRow%, ByVal nCol%, ByVal pText$)
  3456.  
  3457.    On Error GoTo SSSetTextRCError
  3458.    SS.TextRC(nRow, nCol) = pText
  3459.    SSSetTextRC = 0
  3460.    Exit Function
  3461.  
  3462. SSSetTextRCError:
  3463.    SSSetTextRC = Err.Number
  3464.  
  3465. End Function
  3466.  
  3467. Public Function SSSetTitle%(SS As Object, ByVal pTitle$)
  3468.  
  3469.    On Error GoTo SSSetTitleError
  3470.    SS.Title = pTitle
  3471.    SSSetTitle = 0
  3472.    Exit Function
  3473.  
  3474. SSSetTitleError:
  3475.    SSSetTitle = Err.Number
  3476.  
  3477. End Function
  3478.  
  3479. Public Function SSSetTopLeftText%(SS As Object, ByVal pTopLeftText$)
  3480.  
  3481.    On Error GoTo SSSetTopLeftTextError
  3482.    SS.TopLeftText = pTopLeftText
  3483.    SSSetTopLeftText = 0
  3484.    Exit Function
  3485.  
  3486. SSSetTopLeftTextError:
  3487.    SSSetTopLeftText = Err.Number
  3488.  
  3489. End Function
  3490.  
  3491. Public Function SSSetTopRow%(SS As Object, ByVal nTopRow%)
  3492.  
  3493.    On Error GoTo SSSetTopRowError
  3494.    SS.TopRow = nTopRow
  3495.    SSSetTopRow = 0
  3496.    Exit Function
  3497.  
  3498. SSSetTopRowError:
  3499.    SSSetTopRow = Err.Number
  3500.  
  3501. End Function
  3502.  
  3503. Public Function SSShowActiveCell%(SS As Object)
  3504.  
  3505.    On Error GoTo SSShowActiveCellError
  3506.    SS.ShowActiveCell
  3507.    SSShowActiveCell = 0
  3508.    Exit Function
  3509.  
  3510. SSShowActiveCellError:
  3511.    SSShowActiveCell = Err.Number
  3512.  
  3513. End Function
  3514.  
  3515. Public Function SSSort3%(SS As Object, ByVal nR1%, ByVal nC1%, ByVal nR2%, ByVal nC2%, ByVal bSortByRows%, ByVal nKey1%, ByVal nKey2%, ByVal nKey3%)
  3516.  
  3517.    On Error GoTo SSSort3Error
  3518.    SS.Sort3 nR1, nC1, nR2, nC2, bSortByRows, nKey1, nKey2, nKey3
  3519.    SSSort3 = 0
  3520.    Exit Function
  3521.  
  3522. SSSort3Error:
  3523.    SSSort3 = Err.Number
  3524.  
  3525. End Function
  3526.  
  3527. Public Function SSSortDlg%(SS As Object)
  3528.  
  3529.    On Error GoTo SSSortDlgError
  3530.    SS.SortDlg
  3531.    SSSortDlg = 0
  3532.    Exit Function
  3533.  
  3534. SSSortDlgError:
  3535.    SSSortDlg = Err.Number
  3536.  
  3537. End Function
  3538.  
  3539. Public Function SSStartEdit%(SS As Object, ByVal bClear%, ByVal bInCellEditFocus%, ByVal bArrowsExitEditMode%)
  3540.  
  3541.    On Error GoTo SSStartEditError
  3542.    SS.StartEdit bClear, bInCellEditFocus, bArrowsExitEditMode
  3543.    SSStartEdit = 0
  3544.    Exit Function
  3545.  
  3546. SSStartEditError:
  3547.    SSStartEdit = Err.Number
  3548.  
  3549. End Function
  3550.  
  3551. Public Function SSSwapTables%(SS As Object, ByVal hSS2&)
  3552.  
  3553.    On Error GoTo SSSwapTablesError
  3554.    SS.SwapTables hSS2
  3555.    SSSwapTables = 0
  3556.    Exit Function
  3557.  
  3558. SSSwapTablesError:
  3559.    SSSwapTables = Err.Number
  3560.  
  3561. End Function
  3562.  
  3563. Public Function SSTransactCommit%(SS As Object)
  3564.  
  3565.    On Error GoTo SSTransactCommitError
  3566.    SS.TransactCommit
  3567.    SSTransactCommit = 0
  3568.    Exit Function
  3569.  
  3570. SSTransactCommitError:
  3571.    SSTransactCommit = Err.Number
  3572.  
  3573. End Function
  3574.  
  3575. Public Function SSTransactRollBack%(SS As Object)
  3576.  
  3577.    On Error GoTo SSTransactRollBackError
  3578.    SS.TransactRollback
  3579.    SSTransactRollBack = 0
  3580.    Exit Function
  3581.  
  3582. SSTransactRollBackError:
  3583.    SSTransactRollBack = Err.Number
  3584.  
  3585. End Function
  3586.  
  3587. Public Function SSTransactStart%(SS As Object)
  3588.  
  3589.    On Error GoTo SSTransactStartError
  3590.    SS.TransactStart
  3591.    SSTransactStart = 0
  3592.    Exit Function
  3593.  
  3594. SSTransactStartError:
  3595.    SSTransactStart = Err.Number
  3596.  
  3597. End Function
  3598.  
  3599. Public Function SSTwipsToRC%(SS As Object, ByVal x&, ByVal y&, pRow%, pCol%)
  3600.  
  3601.    On Error GoTo SSTwipsToRCError
  3602.    SS.TwipsToRC x, y, pRow, pCol
  3603.    SSTwipsToRC = 0
  3604.    Exit Function
  3605.  
  3606. SSTwipsToRCError:
  3607.    SSTwipsToRC = Err.Number
  3608.  
  3609. End Function
  3610.  
  3611. Public Sub SSUpdate(SS As Object)
  3612.  
  3613.    SS.SSUpdate
  3614.         
  3615. End Sub
  3616.  
  3617. Public Function SSVersion%(SS As Object)
  3618.  
  3619.    SSVersion = SS.SSVersion
  3620.  
  3621. End Function
  3622.  
  3623. Public Function SSWrite%(SS As Object, ByVal pPathName$, ByVal nFileType%)
  3624.  
  3625.    On Error GoTo SSWriteError
  3626.    SS.Write pPathName, nFileType
  3627.    SSWrite = 0
  3628.    Exit Function
  3629.  
  3630. SSWriteError:
  3631.    SSWrite = Err.Number
  3632.  
  3633. End Function
  3634.  
  3635.